From: Junio C Hamano <gitster@pobox.com>
To: Jeff King <peff@peff.net>
Cc: Siddharth Agarwal <sid0@fb.com>, Vicent Marti <tanoku@gmail.com>,
git@vger.kernel.org
Subject: Re: [PATCH] repack: add `repack.honorpackkeep` config var
Date: Tue, 28 Jan 2014 01:21:43 -0800 [thread overview]
Message-ID: <xmqq8uu0mpg8.fsf@gitster.dls.corp.google.com> (raw)
In-Reply-To: <20140128060954.GA26401@sigill.intra.peff.net> (Jeff King's message of "Tue, 28 Jan 2014 01:09:54 -0500")
Jeff King <peff@peff.net> writes:
> The git-repack command always passes `--honor-pack-keep`
> to pack-objects. This has traditionally been a good thing,
> as we do not want to duplicate those objects in a new pack,
> and we are not going to delete the old pack.
> ...
> Note that this option just disables the pack-objects
> behavior. We still leave packs with a .keep in place, as we
> do not necessarily know that we have duplicated all of their
> objects.
>
> Signed-off-by: Jeff King <peff@peff.net>
> ---
> Intended for the jk/pack-bitmap topic.
Two comments.
- It seems that this adds a configuration variable that cannot be
countermanded from the command line. It has to come with either a
very good justification in the documentation describing why it is
a bad idea to even allow overriding from the command line in a
repository that sets it, or a command line option to let the
users override it. I personally prefer the latter, because that
will be one less thing for users to remember (i.e. "usually you
can override the configured default from the command line, but
this variable cannot be because of these very good reasons").
- In the context of "pack-objects", the name "--honor-pack-keep"
makes sense; it is understood that pack-objects will _not_ remove
kept packfile, so "honoring" can only mean "do not attempt to
pick objects out of kept packs to add to the pack being
generated." and there is no room for --no-honor-pack-keep to be
mistaken as "you canremove the ones marked to be kept after
saving the still-used objects in it away."
But does the same name make sense in the context of "repack"?
Thanks.
next prev parent reply other threads:[~2014-01-28 9:21 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-23 2:38 WIth git-next, writing bitmaps fails when keep files are present Siddharth Agarwal
2014-01-23 20:36 ` Siddharth Agarwal
2014-01-23 22:52 ` [PATCH] pack-objects: turn off bitmaps when skipping objects Jeff King
2014-01-23 23:45 ` Siddharth Agarwal
2014-01-23 23:53 ` Siddharth Agarwal
2014-01-24 2:28 ` Jeff King
2014-01-24 2:44 ` Siddharth Agarwal
2014-01-28 6:09 ` [PATCH] repack: add `repack.honorpackkeep` config var Jeff King
2014-01-28 9:21 ` Junio C Hamano [this message]
2014-02-24 8:24 ` Jeff King
2014-02-24 19:10 ` Junio C Hamano
2014-02-26 10:13 ` Jeff King
2014-02-26 20:30 ` Junio C Hamano
2014-02-27 11:27 ` Jeff King
2014-02-27 18:04 ` Junio C Hamano
2014-02-28 8:55 ` Jeff King
2014-02-28 17:09 ` Nasser Grainawi
2014-03-01 6:05 ` Jeff King
2014-03-03 19:12 ` Shawn Pearce
2014-02-28 18:45 ` Junio C Hamano
2014-03-01 5:43 ` Jeff King
2014-03-03 18:13 ` Junio C Hamano
2014-03-03 18:15 ` Jeff King
2014-03-03 19:51 ` Junio C Hamano
2014-03-03 20:04 ` Jeff King
2014-01-23 23:56 ` [PATCH] pack-objects: turn off bitmaps when skipping objects Vicent Martí
2014-01-24 2:26 ` Jeff King
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=xmqq8uu0mpg8.fsf@gitster.dls.corp.google.com \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=peff@peff.net \
--cc=sid0@fb.com \
--cc=tanoku@gmail.com \
/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.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.