diff options
author | Andrey Loskutov <loskutov@gmx.de> | 2015-12-17 00:12:04 +0100 |
---|---|---|
committer | Andrey Loskutov <loskutov@gmx.de> | 2015-12-28 10:56:21 +0100 |
commit | c7c2897527659262cd4b6de0595eb2f369d8f724 (patch) | |
tree | 2924b1e919b53f5ca8d90774d9e76feefef6784d /org.eclipse.jgit.packaging/org.eclipse.jgit.http.apache.feature | |
parent | 9c71bf14b70240907ee880a18ba9977cb4e7bbdb (diff) | |
download | jgit-c7c2897527659262cd4b6de0595eb2f369d8f724.tar.gz jgit-c7c2897527659262cd4b6de0595eb2f369d8f724.zip |
Allow checkout paths without specifying branch name
JGit CLI should allow to do this: checkout -- <path>
Currently, even if "a" is a valid path in the git repo, jgit CLI can't
checkout it:
$jgit checkout -- a
error: pathspec 'a' did not match any file(s) known to git.
The fix also fixes at same time "unnamed" zombie "[VAL ...]" argument
shown on the command line.
Before fix:
$jgit -h
jgit checkout name [VAL ...] [-- path ... ...] [--force (-f)] [--help
(-h)] [--orphan] [-b]
After fix:
$jgit -h
jgit checkout [name] [-- path ... ...] [--force (-f)] [--help (-h)]
[--orphan] [-b]
Bug: 475765
Change-Id: I2b0e77959a72e4aac68452dc3846adaa745b0831
Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
Diffstat (limited to 'org.eclipse.jgit.packaging/org.eclipse.jgit.http.apache.feature')
0 files changed, 0 insertions, 0 deletions