Re: [PATCH] Use perl instead of tac

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Apr 30, 2008, at 5:02 AM, Jörg Sommer wrote:

I also dislike the large lists this is carrying around in shell
variables. If I'm reading it correctly, the tag list could be replaced
by invocations of "git describe --exact-match".

Yes. How to get all tags of a commit?

% git tag foo v1.5.5
% git describe --exact-match 9d831805195ba40b62f632acc6bb6e53d3
warning: tag 'v1.5.5' is really 'foo' here
v1.5.5

I wish I could be clever and say I pointed this out as an obviously wrong answer or similar. But, no, I simply didn't think of that. The long list may be required, despite my concerns about it.. :-(

Those concerns being: overrunning the length of a shell variable, the speed of constructing and searching the list, over-complexity of the code. But, of course, if there isn't another way to do it right then the list stays.

~~ Brian--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux