chiark / gitweb /
For some reason 'git show' doesn't accept '--' to separate options
authorRichard Kettlewell <rjk@greenend.org.uk>
Wed, 22 Jun 2011 21:58:57 +0000 (22:58 +0100)
committerRichard Kettlewell <rjk@greenend.org.uk>
Wed, 22 Jun 2011 21:58:57 +0000 (22:58 +0100)
from positional arguments, so 'vcs show' shouldn't supply it.

src/git.cc

index d5d90e6..366c253 100644 (file)
@@ -223,7 +223,6 @@ public:
   int show(const char *change) const {
     return execute("git",
                    EXE_STR, "show",
-                   EXE_STR, "--",
                    EXE_STR, change,
                    EXE_END);
   }