Skip to content

Commit

Permalink
Merge pull request #48 from nqminhuit/gis-stash
Browse files Browse the repository at this point in the history
gis-stash: support stash and pop
  • Loading branch information
nqminhuit authored Oct 9, 2022
2 parents f1d2a53 + 4cd5320 commit 791cc7a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/java/org/nqm/command/GitCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,12 @@ void remotePruneOrigin() {
forEachModuleDo(path -> deployVertx(path, "remote", "prune", "origin"));
}

@Command(name = "stash")
void stash(@Option(names = "-pp", description = "pop") boolean isPop) {
var args = isPop ? new String[] { "stash", "pop" } : new String[] { "stash" };
forEachModuleDo(path -> deployVertx(path, args));
}

private static Stream<String> streamOf(String[] input) {
return Stream.of(input).map(String::trim).distinct();
}
Expand Down

0 comments on commit 791cc7a

Please sign in to comment.