Re: [PATCH v2] gc: call "prune --expire 2.weeks.ago" by default

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Brandon Casey
Date: Wednesday, March 12, 2008 - 12:55 pm

Jakub Narebski wrote:

I think the issue here is that the prune behavior of git-gc is more complex when
both 'git-gc' does prune and 'git-gc --prune' does prune, but only one of them
is controlled by gc.pruneExpire. From a high level perspective, this is
non-obvious and so has to be explicitly outlined in the help text _and_ users
have to remember it. The git-gc command and the documentation and suggested work
flows can all be simplified by just always doing a safe prune.

I think git-prune is seldomly used by normal users for the reasons Dscho
described, and I think once the behavior implemented by his patch becomes
standard it will never be used by normal users (except the ones who always use
--prune for the reasons Geert Bosch described, and they'll probably want the
new behavior). So I think git-prune will sink a little lower into plumbing and
common users won't need to know anything about pruning, and only sophisticated
users will need to know git-prune.

-brandon

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] gc: call "prune --expire 2.weeks.ago", Johannes Schindelin, (Tue Mar 11, 1:58 pm)
Re: [PATCH] gc: call "prune --expire 2.weeks.ago", Junio C Hamano, (Tue Mar 11, 11:49 pm)
Re: [PATCH] gc: call "prune --expire 2.weeks.ago", Johannes Schindelin, (Wed Mar 12, 3:57 am)
Re: [PATCH] gc: call "prune --expire 2.weeks.ago", Johannes Schindelin, (Wed Mar 12, 9:05 am)
Re: [PATCH v2] gc: call "prune --expire 2.weeks.ago" by de ..., Brandon Casey, (Wed Mar 12, 12:55 pm)
Re: [PATCH] gc: call "prune --expire 2.weeks.ago", Johannes Schindelin, (Wed Mar 12, 4:30 pm)