[GUILT][RFC] Autotagging
- From
- Josef 'Jeff' Sipek <jsipek@cs.sunysb.edu>
- Date
- Mar 10, 2007, 04:46 UTC
- Message-ID
- <11735019831915-git-send-email-jsipek@cs.sunysb.edu>
Greetings all!
Recently, it has been brought to my attention that it would be nice to be able to refer to the top/bottom/base of the patch stack in Guilt by a name instead of fishing around the log for the hash. I quickly coded up the following solution (which I call "autotagging"), which creates unannotated tags for the top (topmost applied patch), bottom (first applied patch), and base (parent of bottom) in with this naming scheme:
${branch}_top
${branch}_bottom
${branch}_baseThe branch name is necessary as each branch has its own series of patches, and potentially different history to begin with.
Of course, I included an option to disable this feature (see patch 2) - just set guilt.autotag=0 in your git config.
Before I merge this into Guilt master, I was hoping for some feedback. Just in case I completely missed something obvious, or perhaps there is a better way to name the branches :)
Thanks,
Josef "Jeff" Sipek.