Skip to contentSkip to conversation

Add git-clean command

PATCH In review Pavel Roskin 2 participants 2 messages Jun 15, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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.

---

 .gitignore                  |    1 +
 Documentation/git-clean.txt |   50 +++++++++++++++++++++++++++
 Makefile                    |    2 +
 git-clean.sh                |   80 +++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 132 insertions(+), 1 deletions(-)
.gitignore +1 -0
index 75891c3..b5959d6 100644
@@ -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
index 145099a..3367b8c 100644
@@ -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

#1 lore raw
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