Thread (9 messages) 9 messages, 6 authors, 2016-06-15

Re: Is there a way to control the number of revisions will be saved by git

From: Jean-Luc Herren <hidden>
Date: 2016-06-15 22:45:43

Arafangion wrote:
On Wed, 2008-12-03 at 13:01 +0200, Tzury Bar Yochay wrote:
<snip>
quoted
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help