rev-parse doc: pass "--" to rev-parse in the --prefix example

The "--" argument avoids "ambiguous argument: unknown revision or path not in the working tree" errors when a pathname argument refers to a non-existent file. The "--" passed explicitly to set was removed because rev-parse outputs the "--" argument that it is given. Signed-off-by: Richard Hansen <hansenr@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Richard Hansen committed Jan 10, 2017 at 15:41 UTC 11873b438faa13ff1416741bb48dbdaa8a6cc083
1 file changed +2 -1
Documentation/git-rev-parse.txt
+2 -1
@@ -91,7 +91,8 @@ repository. For example:
91 ----
92 prefix=$(git rev-parse --show-prefix)
93 cd "$(git rev-parse --show-toplevel)"
94 -eval "set -- $(git rev-parse --sq --prefix "$prefix" "$@")"
94 +# rev-parse provides the -- needed for 'set'
95 +eval "set $(git rev-parse --sq --prefix "$prefix" -- "$@")"
96 ----
97
98 --verify::