From: "Heinrich, Jens" <J.Heinrich@ub.uni-frankfurt.de>
To: "zsh-workers@zsh.org" <zsh-workers@zsh.org>
Subject: PATCH: 5.8: add information to git-clean completion
Date: Thu, 27 Aug 2020 09:45:32 +0000 [thread overview]
Message-ID: <157c404c1df34a08b4de5627a1a237ff@ub.uni-frankfurt.de> (raw)
[-- 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
next reply other threads:[~2020-08-27 9:46 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-27 9:45 Heinrich, Jens [this message]
2020-08-27 16:51 ` Oliver Kiddle
2020-08-28 2:32 ` Daniel Shahaf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=157c404c1df34a08b4de5627a1a237ff@ub.uni-frankfurt.de \
--to=j.heinrich@ub.uni-frankfurt.de \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).