Re: [GIT PULL] ext4 bugfixes for 3.2-rc5

From: Nick Holloway
Date: Sat Dec 17 2011 - 03:28:44 EST


Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx> 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@xxxxxxxxxxxxxx
// ^ \\ | http://www.pyrites.org.uk/
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/