Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: 5.8: add information to git-clean completion
Hi,
Is this ok?
If not: What should I change?
Greets
Jens
From 1527729abf42b97c64b55a31b6e0538842f92b5f Mon Sep 17 00:00:00 2001
From: Jens Heinrich <J.Heinrich@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 27 Aug 2020 11:26:11 +0200
Subject: [PATCH] add doubled --force to git-clean completion
this is needed to remove nested repositories
---
Completion/Unix/Command/_git | 1 +
1 file changed, 1 insertion(+)
diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index 05e2a2361..d54d4ddd6 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -549,6 +549,7 @@ _git-clean () {
_arguments -C -S -s $endopt \
'-d[also remove untracked directories]' \
'(-f --force)'{-f,--force}'[required when clean.requireForce is true (default)]' \
+ '(-f --force)'{-f,--force}'[required twice to remove nested git repositories]' \
'(-i --interactive)'{-i,--interactive}'[show what would be done and clean files interactively]' \
'(-n --dry-run)'{-n,--dry-run}'[only show what would and what would not be removed]' \
'(-q --quiet)'{-q,--quiet}"[don't print names of files removed]" \
--
2.25.2
Messages sorted by:
Reverse Date,
Date,
Thread,
Author