]> source.dussan.org Git - jgit.git/commit
CLI status should support --untracked-files 79/41279/4
authorKaloyan Raev <kaloyan.r@zend.com>
Fri, 6 Feb 2015 14:45:58 +0000 (16:45 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Fri, 13 Mar 2015 01:10:26 +0000 (18:10 -0700)
commit9041fbc958e3f1d19d3ff1285c41201336d5369f
treec0291fc9ca89e493531d055801ba6f582784cb26
parent8b6f9ace1519d79d41ae0179c633cbd21219f7d8
CLI status should support --untracked-files

A special options handler is added to properly handle the short -u alias
of the option.

The "normal" mode is not supported by this patch, because this mode of
listing untracked files is not
supported by the org.eclipse.jgit.lib.IndexDiff class. This mode is not
necessary for my use case. It can be added later if anyone really needs
it.

The StatusTest is updated to cover all possible combinations of the
--porcelain and --untracked-files options.

Bug: 459319
Change-Id: I305ac95739cfed0c16735e0987844e57fa27e236
Signed-off-by: Kaloyan Raev <kaloyan.r@zend.com>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.jgit.pgm.test/tst/org/eclipse/jgit/pgm/StatusTest.java
org.eclipse.jgit.pgm/META-INF/MANIFEST.MF
org.eclipse.jgit.pgm/resources/org/eclipse/jgit/pgm/internal/CLIText.properties
org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Status.java
org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/opt/UntrackedFilesHandler.java [new file with mode: 0644]
pom.xml