Messages in this thread | | | Date | Sat, 17 Dec 2011 08:20:48 +0000 | From | Nick Holloway <> | Subject | Re: [GIT PULL] ext4 bugfixes for 3.2-rc5 |
| |
Linus Torvalds <torvalds@linux-foundation.org> writes: > git cat-file commit 2240a7bb479c | > awk '/^mergetag /,/^$/ { print }' | > sed 's/^mergetag//' | > sed 's/^ //' > > (ok, that can almost certainly be done smarter,
Forfilling your prediction that it could be smarter, here is the same in a single sed invocation:
git cat-file commit 2240a7bb479c | sed -rn '/^mergetag /,/^$/{s/^(mergetag)? //p}'
I don't expect anyone cares though...
-- `O O' | Nick.Holloway@pyrites.org.uk // ^ \\ | http://www.pyrites.org.uk/
| |