Re: [PATCH] builtin-rm: Add a --force flag

5 messages, 4 authors, 2016-06-15 · open the first message on its own page

Re: [PATCH] builtin-rm: Add a --force flag

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:45:07

I think this makes sense even this late in -rc cycle.  Thanks.

[PATCH] bash completion: git rm has grown a --force option

From: Todd Zullinger <hidden>
Date: 2016-06-15 22:45:07

Signed-off-by: Todd Zullinger <redacted>
---

Junio C Hamano wrote:
I think this makes sense even this late in -rc cycle.  Thanks.
Perhaps this is worth adding as well then, since Lee went to the
trouble of adding completion for git rm just the other day? ;)

 contrib/completion/git-completion.bash |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index 3396e35..2d0e468 100755
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -1361,7 +1361,7 @@ _git_rm ()
 	local cur="${COMP_WORDS[COMP_CWORD]}"
 	case "$cur" in
 	--*)
-		__gitcomp "--cached --dry-run --ignore-unmatch --quiet"
+		__gitcomp "--cached --dry-run --force --ignore-unmatch --quiet"
 		return
 		;;
 	esac
-- 
1.6.0.rc2

-- 
Todd        OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In some cultures what I do would be considered normal.

Re: [PATCH] builtin-rm: Add a --force flag

From: Jeff King <hidden>
Date: 2016-06-15 22:45:07

On Fri, Aug 08, 2008 at 04:05:16PM -0700, Junio C Hamano wrote:
I think this makes sense even this late in -rc cycle.  Thanks.
Maybe squash this in?

-Peff
diff --git a/Documentation/git-rm.txt b/Documentation/git-rm.txt
index 4d0c495..0aaf161 100644
--- a/Documentation/git-rm.txt
+++ b/Documentation/git-rm.txt
@@ -36,6 +36,7 @@ OPTIONS
 	but this requires the `-r` option to be explicitly given.
 
 -f::
+--force::
 	Override the up-to-date check.
 
 -n::

Re: [PATCH] bash completion: git rm has grown a --force option

From: SZEDER Gábor <hidden>
Date: 2016-06-15 22:45:07

Hi,

On Fri, Aug 08, 2008 at 07:41:34PM -0400, Todd Zullinger wrote:
Perhaps this is worth adding as well then, since Lee went to the
trouble of adding completion for git rm just the other day? ;)
I disagree here.  '--force' is an option that should be used with
care, therefore facilitating its usage by completion support is not a
good idea IMHO.  This is also the status quo:  while there are many
git commands with a '--force' option, we do not complete any of them.

Regards,
Gábor

Re: [PATCH] bash completion: git rm has grown a --force option

From: Todd Zullinger <hidden>
Date: 2016-06-15 22:45:07

SZEDER Gábor wrote:
I disagree here.  '--force' is an option that should be used with
care, therefore facilitating its usage by completion support is not
a good idea IMHO.  This is also the status quo:  while there are
many git commands with a '--force' option, we do not complete any of
them.
Yes, my apologies for missing that point.  It is a good one.

-- 
Todd        OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
A word to the wise ain't necessary -- it's the stupid ones who need
the advice.
    -- Bill Cosby
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help