[cctbxbb] sequential revision number from git repo

R.D. Oeffner rdo20 at cam.ac.uk
Tue Apr 5 05:38:16 PDT 2016


Hi,

We are slowly moving phaser svn to git. One issue that we would like to 
address is if there is a practical way of conveying a linear commit 
history from the git repo.

One approach is to just count the number of revisions that was made to 
the master branch in the git repo with
"git rev-list --count HEAD"
and then pretend that number is a revision number. This enables us to 
tell users "This bug was fixed after revision 6456 of phaser" rather 
than "This bug was fixed after commit 29b0a1c... of phaser". Is there 
any pitfalls with this approach?

What workarounds do other people using git come up with?



Rob


-- 
Robert Oeffner, Ph.D.
Research Associate, The Read Group
Department of Haematology,
Cambridge Institute for Medical Research
University of Cambridge
Cambridge Biomedical Campus
Wellcome Trust/MRC Building
Hills Road
Cambridge CB2 0XY

www.cimr.cam.ac.uk/investigators/read/index.html
tel: +44(0)1223 763234
mobile: +44(0)7712 887162


More information about the cctbxbb mailing list