Fix default value of clang-format-diff's -p option.
This way, it has the same default as 'patch' and also the example in the code makes more sense as it is explicitly setting -p 1. llvm-svn: 182923
This commit is contained in:
parent
3a7c6d689d
commit
2714ba03f6
|
@ -83,7 +83,7 @@ def formatRange(r, style):
|
|||
def main():
|
||||
parser = argparse.ArgumentParser(description=
|
||||
'Reformat changed lines in diff')
|
||||
parser.add_argument('-p', default=1,
|
||||
parser.add_argument('-p', default=0,
|
||||
help='strip the smallest prefix containing P slashes')
|
||||
parser.add_argument('-style',
|
||||
help='formatting style to apply (LLVM, Google, Chromium)')
|
||||
|
|
Loading…
Reference in New Issue