zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: 5.8: add information to git-clean completion
@ 2020-08-27  9:45 Heinrich, Jens
  2020-08-27 16:51 ` Oliver Kiddle
  0 siblings, 1 reply; 3+ messages in thread
From: Heinrich, Jens @ 2020-08-27  9:45 UTC (permalink / raw)
  To: zsh-workers

[-- Attachment #1: Type: text/plain, Size: 65 bytes --]

Hi,

Is this ok?
If not: What should I change?

Greets
Jens

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-add-doubled-force-to-git-clean-completion.patch --]
[-- Type: text/x-patch; name="0001-add-doubled-force-to-git-clean-completion.patch", Size: 1088 bytes --]

From 1527729abf42b97c64b55a31b6e0538842f92b5f Mon Sep 17 00:00:00 2001
From: Jens Heinrich <J.Heinrich@ub.uni-frankfurt.de>
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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-08-28  2:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-27  9:45 PATCH: 5.8: add information to git-clean completion Heinrich, Jens
2020-08-27 16:51 ` Oliver Kiddle
2020-08-28  2:32   ` Daniel Shahaf

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).