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:
Daniel Jasper 2013-05-30 11:50:20 +00:00
parent 3a7c6d689d
commit 2714ba03f6
1 changed files with 1 additions and 1 deletions

View File

@ -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)')