Add git-clean command
Subsystems (2)
PATCH 1/1 Add git-clean command
This command removes untracked files from the working tree. This implementation is based on cg-clean with some simplifications. The documentation is included.
Signed-off-by Pavel Roskin <[email protected]>
---
.gitignore | 1 + Documentation/git-clean.txt | 50 +++++++++++++++++++++++++++ Makefile | 2 + git-clean.sh | 80 +++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 132 insertions(+), 1 deletions(-)
.gitignore +1 -0
@@ -15,6 +15,7 @@ git-checkout git-checkout-index git-cherry git-cherry-pick +git-clean git-clone git-clone-pack git-commit
Documentation/git-clean.txt new file +50 -0
50 lines not on this page · raw message
Makefile +1 -1
@@ -114,7 +114,7 @@ ### --- END CONFIGURATION SECTION --- SCRIPT_SH = \ git-add.sh git-bisect.sh git-branch.sh git-checkout.sh \ - git-cherry.sh git-clone.sh git-commit.sh \ + git-cherry.sh git-clean.sh git-clone.sh git-commit.sh \ git-count-objects.sh git-diff.sh git-fetch.sh \ git-format-patch.sh git-log.sh git-ls-remote.sh \ git-merge-one-file.sh git-parse-remote.sh \
git-clean.sh new file +80 -0
80 lines not on this page · raw message
Quoted 4 lines · Pavel Roskin
+SYNOPSIS
+--------
+[verse]
+'git-clean' [-d | -D] [-n] [-q] [-x]
Shouldn't it be
Quoted 1 line
+'git-clean' [-d] [-n] [-q] [-x | -X]
like in below?
Quoted 1 line
+USAGE="[-d] [-n] [-q] [-x | -X]"
Signature · 2 lines
Jakub Narebski Warsaw, Poland