git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] bash completion: remove deprecated --prune from git-gc
@ 2008-12-13 19:08 Markus Heidelberg
  2008-12-14 10:38 ` Johannes Schindelin
  0 siblings, 1 reply; 8+ messages in thread
From: Markus Heidelberg @ 2008-12-13 19:08 UTC (permalink / raw)
  To: gitster; +Cc: git


Signed-off-by: Markus Heidelberg <markus.heidelberg@web.de>
---
 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 c79c98f..9e0c48b 100755
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -835,7 +835,7 @@ _git_gc ()
 	local cur="${COMP_WORDS[COMP_CWORD]}"
 	case "$cur" in
 	--*)
-		__gitcomp "--prune --aggressive"
+		__gitcomp "--aggressive"
 		return
 		;;
 	esac
-- 
1.6.1.rc1.54.gd1643

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

* Re: [PATCH] bash completion: remove deprecated --prune from git-gc
  2008-12-13 19:08 [PATCH] bash completion: remove deprecated --prune from git-gc Markus Heidelberg
@ 2008-12-14 10:38 ` Johannes Schindelin
  2008-12-14 11:12   ` Jeff King
  2008-12-14 11:23   ` Jakub Narebski
  0 siblings, 2 replies; 8+ messages in thread
From: Johannes Schindelin @ 2008-12-14 10:38 UTC (permalink / raw)
  To: Markus Heidelberg; +Cc: gitster, git

Hi,

On Sat, 13 Dec 2008, Markus Heidelberg wrote:

> -		__gitcomp "--prune --aggressive"
> +		__gitcomp "--aggressive"

git gc --prune is deprecated?  That's news to me.

How would you suggest, then, to remove the loose objects you always get 
with conflicts in a merge?

Ciao,
Dscho

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

* Re: [PATCH] bash completion: remove deprecated --prune from git-gc
  2008-12-14 10:38 ` Johannes Schindelin
@ 2008-12-14 11:12   ` Jeff King
  2008-12-14 11:17     ` Johannes Schindelin
  2008-12-15 16:51     ` Brandon Casey
  2008-12-14 11:23   ` Jakub Narebski
  1 sibling, 2 replies; 8+ messages in thread
From: Jeff King @ 2008-12-14 11:12 UTC (permalink / raw)
  To: Johannes Schindelin; +Cc: Markus Heidelberg, gitster, git

On Sun, Dec 14, 2008 at 11:38:17AM +0100, Johannes Schindelin wrote:

> > -		__gitcomp "--prune --aggressive"
> > +		__gitcomp "--aggressive"
> git gc --prune is deprecated?  That's news to me.

Check out 9e7d501 (builtin-gc.c: deprecate --prune, it now really has no
effect, 2008-05-09).

Which annoyingly has no discussion about _why_ it no longer has an
effect. But I suspect it has something to do with 25ee973 (gc: call
"prune --expire 2.weeks.ago" by default, 2008-03-12) by you.

-Peff

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

* Re: [PATCH] bash completion: remove deprecated --prune from git-gc
  2008-12-14 11:12   ` Jeff King
@ 2008-12-14 11:17     ` Johannes Schindelin
  2008-12-14 11:19       ` Jeff King
  2008-12-15 16:51     ` Brandon Casey
  1 sibling, 1 reply; 8+ messages in thread
From: Johannes Schindelin @ 2008-12-14 11:17 UTC (permalink / raw)
  To: Jeff King; +Cc: Markus Heidelberg, gitster, git

Hi,

On Sun, 14 Dec 2008, Jeff King wrote:

> On Sun, Dec 14, 2008 at 11:38:17AM +0100, Johannes Schindelin wrote:
> 
> > > -		__gitcomp "--prune --aggressive"
> > > +		__gitcomp "--aggressive"
> > git gc --prune is deprecated?  That's news to me.
> 
> Check out 9e7d501 (builtin-gc.c: deprecate --prune, it now really has no
> effect, 2008-05-09).
> 
> Which annoyingly has no discussion about _why_ it no longer has an
> effect. But I suspect it has something to do with 25ee973 (gc: call
> "prune --expire 2.weeks.ago" by default, 2008-03-12) by you.

Oops.

But I thought that git gc --prune does expire _all_ dangling loose 
objects _now_, not with --expire 2.weeks.ago.

Ciao,
Dscho

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

* Re: [PATCH] bash completion: remove deprecated --prune from git-gc
  2008-12-14 11:17     ` Johannes Schindelin
@ 2008-12-14 11:19       ` Jeff King
  2008-12-15 18:06         ` Brandon Casey
  0 siblings, 1 reply; 8+ messages in thread
From: Jeff King @ 2008-12-14 11:19 UTC (permalink / raw)
  To: Johannes Schindelin; +Cc: Markus Heidelberg, gitster, git

On Sun, Dec 14, 2008 at 12:17:07PM +0100, Johannes Schindelin wrote:

> > Which annoyingly has no discussion about _why_ it no longer has an
> > effect. But I suspect it has something to do with 25ee973 (gc: call
> > "prune --expire 2.weeks.ago" by default, 2008-03-12) by you.
> 
> Oops.
> 
> But I thought that git gc --prune does expire _all_ dangling loose 
> objects _now_, not with --expire 2.weeks.ago.

Nope, see 25ee973. You explicitly wrote:

      Note that this new behaviour makes "--prune" be a no-op.

That being said, I think that is perhaps a reasonable thing for --prune
to do (and I don't think there is any conflict with the name, because
that is what it _used_ to do before becoming a no-op). But nobody has
actually implemented it.

-Peff

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

* Re: [PATCH] bash completion: remove deprecated --prune from git-gc
  2008-12-14 10:38 ` Johannes Schindelin
  2008-12-14 11:12   ` Jeff King
@ 2008-12-14 11:23   ` Jakub Narebski
  1 sibling, 0 replies; 8+ messages in thread
From: Jakub Narebski @ 2008-12-14 11:23 UTC (permalink / raw)
  To: Johannes Schindelin; +Cc: Markus Heidelberg, gitster, git

Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:

> On Sat, 13 Dec 2008, Markus Heidelberg wrote:
> 
> > -		__gitcomp "--prune --aggressive"
> > +		__gitcomp "--aggressive"
> 
> git gc --prune is deprecated?  That's news to me.

More like "git gc --prune" is no-op now.
 
> How would you suggest, then, to remove the loose objects you always get 
> with conflicts in a merge?

"git gc" does pruning of loose objects, but protected by grace period
for loose objects with gc.pruneexpire

You always have (admittedly lowe level) git-prune.
-- 
Jakub Narebski
Poland
ShadeHawk on #git

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

* Re: [PATCH] bash completion: remove deprecated --prune from git-gc
  2008-12-14 11:12   ` Jeff King
  2008-12-14 11:17     ` Johannes Schindelin
@ 2008-12-15 16:51     ` Brandon Casey
  1 sibling, 0 replies; 8+ messages in thread
From: Brandon Casey @ 2008-12-15 16:51 UTC (permalink / raw)
  To: Jeff King; +Cc: Johannes Schindelin, Markus Heidelberg, gitster, git

Jeff King wrote:
> On Sun, Dec 14, 2008 at 11:38:17AM +0100, Johannes Schindelin wrote:
> 
>>> -		__gitcomp "--prune --aggressive"
>>> +		__gitcomp "--aggressive"
>> git gc --prune is deprecated?  That's news to me.
> 
> Check out 9e7d501 (builtin-gc.c: deprecate --prune, it now really has no
> effect, 2008-05-09).
> 
> Which annoyingly has no discussion about _why_ it no longer has an
> effect. But I suspect it has something to do with 25ee973 (gc: call
> "prune --expire 2.weeks.ago" by default, 2008-03-12) by you.

I think the nail in the coffin for --prune was a37cce3b, which preceded
9e7d501. I guess the commit message for 9e7d501 made sense with a37cce3b
as a reference. There was another commit around the same time which
claimed that --prune was deprecated even though it still provided some
functionality, hence the "...really has no effect" part.

I definitely remember that Johannes implemented the gc.pruneExpire
functionality, so his "That's news to me" made me laugh. Thanks for
the chuckle Johannes. :)

-brandon

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

* Re: [PATCH] bash completion: remove deprecated --prune from git-gc
  2008-12-14 11:19       ` Jeff King
@ 2008-12-15 18:06         ` Brandon Casey
  0 siblings, 0 replies; 8+ messages in thread
From: Brandon Casey @ 2008-12-15 18:06 UTC (permalink / raw)
  To: Jeff King; +Cc: Johannes Schindelin, Markus Heidelberg, gitster, git

Jeff King wrote:
> On Sun, Dec 14, 2008 at 12:17:07PM +0100, Johannes Schindelin wrote:
> 
>>> Which annoyingly has no discussion about _why_ it no longer has an
>>> effect. But I suspect it has something to do with 25ee973 (gc: call
>>> "prune --expire 2.weeks.ago" by default, 2008-03-12) by you.
>> Oops.
>>
>> But I thought that git gc --prune does expire _all_ dangling loose 
>> objects _now_, not with --expire 2.weeks.ago.
> 
> Nope, see 25ee973. You explicitly wrote:
> 
>       Note that this new behaviour makes "--prune" be a no-op.
> 
> That being said, I think that is perhaps a reasonable thing for --prune
> to do (and I don't think there is any conflict with the name, because
> that is what it _used_ to do before becoming a no-op). But nobody has
> actually implemented it.

Maybe --mrproper would be a more appropriate name.

-brandon

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

end of thread, other threads:[~2008-12-15 18:08 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-13 19:08 [PATCH] bash completion: remove deprecated --prune from git-gc Markus Heidelberg
2008-12-14 10:38 ` Johannes Schindelin
2008-12-14 11:12   ` Jeff King
2008-12-14 11:17     ` Johannes Schindelin
2008-12-14 11:19       ` Jeff King
2008-12-15 18:06         ` Brandon Casey
2008-12-15 16:51     ` Brandon Casey
2008-12-14 11:23   ` Jakub Narebski

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).