git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Testing for commit reachability through plumbing commands
@ 2014-03-06 17:17 Martin Langhoff
  2014-03-06 19:17 ` Andreas Schwab
  2014-03-06 20:23 ` Jeff King
  0 siblings, 2 replies; 4+ messages in thread
From: Martin Langhoff @ 2014-03-06 17:17 UTC (permalink / raw)
  To: Git Mailing List

I have a shell script that trims old history on a cronjob. This is for
a repo that is used to track reports that have limited "life" (like
logs). Old history is trimmed with grafts pointing to an empty "root"
commit.

Right now, info/graft grows unbound. I am looking for a way to trim
unreachable grafts, I would like to be able to say something like:

 git is-reachable treeish

Grepping through docs and existing code hasn't helped, but perhaps I'm
missing something obvious...

This repository has a couple hundred branches (one per server
tracked). For a single branch, I can picture a relatively easy
approach with git merge-base.

thanks!



m
-- 
 martin.langhoff@gmail.com
 -  ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 ~ http://docs.moodle.org/en/User:Martin_Langhoff

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

end of thread, other threads:[~2014-03-06 20:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-06 17:17 Testing for commit reachability through plumbing commands Martin Langhoff
2014-03-06 19:17 ` Andreas Schwab
2014-03-06 19:29   ` Martin Langhoff
2014-03-06 20:23 ` Jeff King

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