git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Advice on strategy for "temporary" commits
@ 2007-03-08 14:39 David Tweed
  2007-03-08 16:11 ` Alex Riesen
  2007-03-08 16:32 ` J. Bruce Fields
  0 siblings, 2 replies; 7+ messages in thread
From: David Tweed @ 2007-03-08 14:39 UTC (permalink / raw)
  To: git

Hi,

I've been working with my system taking automatic
hourly git snapshots of (filtered portions of) my home
directory for a couple of months. Being able to look
back to what files looked like mid-afternoon yesterday,
or on 18 Nov, is proving modestly useful. However,
I'm thinking about adding "temporary" commits every
ten minutes which then get discarded after 5 hours-ish
(in addition to the long-term archival hourly commits).
This is motivated by the desire to have finer granularity
for testing/bisecting short-term regressions but not having
ridiculously fine-grained changes clogging up the
archive long-term. (I'm aware that with the commits
being primarily taken on a timed basis I'll have more
non-compiling changes than is usual in a repository, so
that this may not turn out to be useful in practice.)

Looking through the git docs, it looks like the most
natural way of doing this is to make the 10-min commits
(via cron & tagging them under a special tag "temporary
commits only" directory) and then use

git-rebase --onto start-tag end-tag branch

every so often (via cron again) to chop the older
temporary commits between start-tag and end-tag
out of the database.

However, I'm not remotely expert on all the other
things you can do with git, so I'm just checking
there's not a way considered better/safer (eg, a separate
branch or repository).

Many thanks for any insight,
-- 
cheers, dave tweed__________________________
david.tweed@gmail.com
Rm 124, School of Systems Engineering, University of Reading.
Details are all that matters; God dwells there, and you never get to
see Him if you don't struggle to get them right. -- Stephen Jay Gould

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

end of thread, other threads:[~2007-03-11  5:22 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-08 14:39 Advice on strategy for "temporary" commits David Tweed
2007-03-08 16:11 ` Alex Riesen
2007-03-08 16:32 ` J. Bruce Fields
2007-03-08 17:07   ` David Tweed
2007-03-08 18:02     ` Mark Wooding
2007-03-09 10:15     ` Jakub Narebski
     [not found]       ` <e1dab3980703102101s21401403ja28c6273ecaa7b83@mail.gmail.com>
2007-03-11  5:22         ` David Tweed

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