File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -13,11 +13,11 @@ clang-format git integration
13
13
============================
14
14
15
15
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
17
17
clang-format on the changes in current files or a specific commit.
18
18
19
19
For further details, run:
20
- git- clang-format -h
20
+ git clang-format -h
21
21
22
22
Requires Python 2.7 or Python 3
23
23
"""
@@ -32,7 +32,7 @@ import re
32
32
import subprocess
33
33
import sys
34
34
35
- usage = ('git- clang-format [OPTIONS] [<commit>] [<commit>|--staged] '
35
+ usage = ('git clang-format [OPTIONS] [<commit>] [<commit>|--staged] '
36
36
'[--] [<file>...]' )
37
37
38
38
desc = '''
@@ -42,13 +42,13 @@ only applied to the working directory, or in the stage/index.
42
42
43
43
Examples:
44
44
To format staged changes, i.e everything that's been `git add`ed:
45
- git- clang-format
45
+ git clang-format
46
46
47
47
To also format everything touched in the most recent commit:
48
- git- clang-format HEAD~1
48
+ git clang-format HEAD~1
49
49
50
50
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
52
52
53
53
If two commits are given (requires --diff), run clang-format on all lines in the
54
54
second <commit> that differ from the first <commit>.
You can’t perform that action at this time.
0 commit comments