Hallo, Junio C Hamano schrieb am Sat 12. Apr, 23:20 (-0700): > Jörg Sommer <joerg@xxxxxxxxxxxx> writes: > > > “This makes it easier to test for equality of a commit in the TODO list > > and one of SHORTUPSTREAM, SHORTHEAD or SHORTONTO.” > > "Equality testing?" --- that makes me worried. short=7 does not chomp > them at 7 but only tells rev-parse to use at least 7. You may get 8 or > more if there are other objects that share the same prefix when you get > them. > > Perhaps by forcing "at least 7" everywhere you are getting consistent > result that makes them easier to compare. That's what I want. > But considering that this is a candidate for a general mechanism to > eventual grow into the git-sequencer, and that we expect to have richer, > smarter, and/or more complex set of tools that feeds you the TODO list, > I'd feel safer if the internal comparison used to determine which one > commit the user meant in his TODO file is robust and does not rely on > where the abbreviated object name was chomped at. I use it one time while building the TODO list given to the editor. I've to replace $UPSTREAM with $ONTO everywhere $UPSTREAM occures. Do you still have a bad feeling? I can replace all tests by test "$(git rev-parse $a)" = "$(git rev-parse $b)" Bye, Jörg. -- Was man mühelos erreichen kann, ist gewöhnlich nicht der Mühe wert, erreicht zu werden.
Attachment:
signature.asc
Description: Digital signature http://en.wikipedia.org/wiki/OpenPGP