From: Jean-Luc Herren <jlh@gmx.ch>
To: Arafangion <thestar@fussycoder.id.au>
Cc: Tzury Bar Yochay <tzury.by@gmail.com>, git@vger.kernel.org
Subject: Re: Is there a way to control the number of revisions will be saved by git
Date: Wed, 03 Dec 2008 14:04:06 +0100 [thread overview]
Message-ID: <493683C6.8060902@gmx.ch> (raw)
In-Reply-To: <1228304226.23167.8.camel@therock.nsw.bigpond.net.au>
Arafangion wrote:
> On Wed, 2008-12-03 at 13:01 +0200, Tzury Bar Yochay wrote:
> <snip>
>> Say I wish to save only 100 generations back (per branch).
>> Is it possible to configure git so it will save only N records back.
>
> What would be the advantage in doing that?
That would be a shallow repository, as is already supported by
"git clone --depth 100". It can be useful for a number of things,
for example developing simple patches on top of HEAD and sending
them somewhere.
What the OP might want is a way to convert a full repository into
a shallow one (can be done by cloning and deleting the original),
and then be able to make it shallower from time to time, to limit
it to 100 revisions; not sure if that is possible.
jlh
next prev parent reply other threads:[~2008-12-03 13:05 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-03 11:01 Is there a way to control the number of revisions will be saved by git Tzury Bar Yochay
2008-12-03 11:22 ` Johannes Sixt
2008-12-03 12:58 ` Jakub Narebski
2008-12-03 13:40 ` Miklos Vajna
2008-12-03 11:37 ` Arafangion
2008-12-03 13:04 ` Jean-Luc Herren [this message]
2008-12-03 12:47 ` Tzury Bar Yochay
2008-12-03 18:20 ` Tzury Bar Yochay
2008-12-03 18:23 ` Tzury Bar Yochay
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=493683C6.8060902@gmx.ch \
--to=jlh@gmx.ch \
--cc=git@vger.kernel.org \
--cc=thestar@fussycoder.id.au \
--cc=tzury.by@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 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).