[clang] d099dbb - [git-clang-format] Fix typo in help message
Jim Lin via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 29 23:11:44 PDT 2023
Author: Jim Lin
Date: 2023-08-30T14:09:31+08:00
New Revision: d099dbb221a4c3474a15117b1658dedc5dcd6ebf
URL: https://github.com/llvm/llvm-project/commit/d099dbb221a4c3474a15117b1658dedc5dcd6ebf
DIFF: https://github.com/llvm/llvm-project/commit/d099dbb221a4c3474a15117b1658dedc5dcd6ebf.diff
LOG: [git-clang-format] Fix typo in help message
`git clang-format` -> `git-clang-format`
Added:
Modified:
clang/tools/clang-format/git-clang-format
Removed:
################################################################################
diff --git a/clang/tools/clang-format/git-clang-format b/clang/tools/clang-format/git-clang-format
index c0b99b82203234..3e49c49af2babc 100755
--- a/clang/tools/clang-format/git-clang-format
+++ b/clang/tools/clang-format/git-clang-format
@@ -13,11 +13,11 @@ clang-format git integration
============================
This file provides a clang-format integration for git. Put it somewhere in your
-path and ensure that it is executable. Then, "git clang-format" will invoke
+path and ensure that it is executable. Then, "git-clang-format" will invoke
clang-format on the changes in current files or a specific commit.
For further details, run:
-git clang-format -h
+git-clang-format -h
Requires Python 2.7 or Python 3
"""
@@ -32,7 +32,7 @@ import re
import subprocess
import sys
-usage = ('git clang-format [OPTIONS] [<commit>] [<commit>|--staged] '
+usage = ('git-clang-format [OPTIONS] [<commit>] [<commit>|--staged] '
'[--] [<file>...]')
desc = '''
@@ -42,13 +42,13 @@ only applied to the working directory, or in the stage/index.
Examples:
To format staged changes, i.e everything that's been `git add`ed:
- git clang-format
+ git-clang-format
To also format everything touched in the most recent commit:
- git clang-format HEAD~1
+ git-clang-format HEAD~1
If you're on a branch off main, to format everything touched on your branch:
- git clang-format main
+ git-clang-format main
If two commits are given (requires --
diff ), run clang-format on all lines in the
second <commit> that
diff er from the first <commit>.
More information about the cfe-commits
mailing list