Browse Source

Merge "diff: Add "--staged" as alias to "--cached""

stable-5.4
Christian Halstrick 6 years ago committed by Gerrit Code Review @ Eclipse.org
parent
commit
7699ecd8fa
  1. 2
      org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Diff.java

2
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)

Loading…
Cancel
Save