A new way to get a sha1?

2012-07-30 Thread Thomas Badie
Hi all, When I should fixup or squash a commit, I nearly never remember how to get the sha1 of the commit I want to fixup. Because sometimes HEAD~n is not enough, I make `git log`, copy the sha1 of the right commit and paste it in my git fixup command. So I wrote a perl script to avoid the usage

Re: A new way to get a sha1?

2012-07-30 Thread Thomas Badie
2012/7/30 Jan Engelhardt jeng...@inai.de: On Monday 2012-07-30 14:11, Thomas Badie wrote: Hi all, When I should fixup or squash a commit, I nearly never remember how to get the sha1 of the commit I want to fixup. Because sometimes HEAD~n is not enough, I make `git log`, copy the sha1

Re: A new way to get a sha1?

2012-07-30 Thread Thomas Badie
2012/7/30 Sitaram Chamarty sitar...@gmail.com: On Mon, Jul 30, 2012 at 5:41 PM, Thomas Badie thomas.ba...@gmail.com wrote: Hi all, When I should fixup or squash a commit, I nearly never remember how to get the sha1 of the commit I want to fixup. Because sometimes HEAD~n is not enough, I make

Re: A new way to get a sha1?

2012-07-30 Thread Thomas Badie
2012/7/30 Junio C Hamano gits...@pobox.com: Jan Engelhardt jeng...@inai.de writes: On Monday 2012-07-30 14:11, Thomas Badie wrote: Hi all, When I should fixup or squash a commit, I nearly never remember how to get the sha1 of the commit I want to fixup. Because sometimes HEAD~n is not enough

Re: A new way to get a sha1?

2012-07-30 Thread Thomas Badie
2012/7/30 Thomas Rast tr...@student.ethz.ch: Thomas Badie thomas.ba...@gmail.com writes: The idea is to have a perl module which run through the log history and print 10 shortlog associated with a number from 0 to 9, and a message below Select commit [| 0, 9 |] or next row ? or this kind

Re: A new way to get a sha1?

2012-07-30 Thread Thomas Badie
2012/7/30 Jeff King p...@peff.net: On Mon, Jul 30, 2012 at 06:40:12PM +0200, Thomas Badie wrote: I understand your opinion. My solution was a easier way to make your proposition about `git log --oneline`, because I don't want to copy these 6 numbers by hand. I'd prefer select the right line