Skip to content

Commit d099dbb

Browse files
committed
[git-clang-format] Fix typo in help message
`git clang-format` -> `git-clang-format`
1 parent 8859c64 commit d099dbb

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

clang/tools/clang-format/git-clang-format

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ clang-format git integration
1313
============================
1414
1515
This file provides a clang-format integration for git. Put it somewhere in your
16-
path and ensure that it is executable. Then, "git clang-format" will invoke
16+
path and ensure that it is executable. Then, "git-clang-format" will invoke
1717
clang-format on the changes in current files or a specific commit.
1818
1919
For further details, run:
20-
git clang-format -h
20+
git-clang-format -h
2121
2222
Requires Python 2.7 or Python 3
2323
"""
@@ -32,7 +32,7 @@ import re
3232
import subprocess
3333
import sys
3434

35-
usage = ('git clang-format [OPTIONS] [<commit>] [<commit>|--staged] '
35+
usage = ('git-clang-format [OPTIONS] [<commit>] [<commit>|--staged] '
3636
'[--] [<file>...]')
3737

3838
desc = '''
@@ -42,13 +42,13 @@ only applied to the working directory, or in the stage/index.
4242
4343
Examples:
4444
To format staged changes, i.e everything that's been `git add`ed:
45-
git clang-format
45+
git-clang-format
4646
4747
To also format everything touched in the most recent commit:
48-
git clang-format HEAD~1
48+
git-clang-format HEAD~1
4949
5050
If you're on a branch off main, to format everything touched on your branch:
51-
git clang-format main
51+
git-clang-format main
5252
5353
If two commits are given (requires --diff), run clang-format on all lines in the
5454
second <commit> that differ from the first <commit>.

0 commit comments

Comments
 (0)