From a24fc94ccdc5d3eef754725a52568928cb4e7189 Mon Sep 17 00:00:00 2001 From: Andre Bossert Date: Mon, 4 Mar 2019 17:30:16 +0100 Subject: [PATCH] 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 --- org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Diff.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.5