diff options
author | Andre Bossert <andre.bossert@siemens.com> | 2019-03-04 17:30:16 +0100 |
---|---|---|
committer | Andre Bossert <andre.bossert@siemens.com> | 2019-03-25 04:21:02 -0500 |
commit | a24fc94ccdc5d3eef754725a52568928cb4e7189 (patch) | |
tree | b4fcad4a33a645cdead74d93ac126b0dd2f1c419 /org.eclipse.jgit.pgm/src | |
parent | 16f75aa9da53220026603af6f564da271a9cba3f (diff) | |
download | jgit-a24fc94ccdc5d3eef754725a52568928cb4e7189.tar.gz jgit-a24fc94ccdc5d3eef754725a52568928cb4e7189.zip |
diff: Add "--staged" as alias to "--cached"
see: https://git-scm.com/docs/git-diff
"--staged is a synonym of --cached"
Change-Id: Ie73f6b3d3b7179c339151cebab98f9ddee6aaf49
Signed-off-by: Andre Bossert <andre.bossert@siemens.com>
Diffstat (limited to 'org.eclipse.jgit.pgm/src')
-rw-r--r-- | org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Diff.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Diff.java b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Diff.java index 7747dc7dd7..3d6ebfd8b6 100644 --- a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Diff.java +++ b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Diff.java @@ -87,7 +87,7 @@ class Diff extends TextBuiltin { @Argument(index = 1, metaVar = "metaVar_treeish") private AbstractTreeIterator newTree; - @Option(name = "--cached", usage = "usage_cached") + @Option(name = "--cached", aliases = { "--staged" }, usage = "usage_cached") private boolean cached; @Option(name = "--", metaVar = "metaVar_paths", handler = PathTreeFilterHandler.class) |