On Wed, Jan 22, 2014 at 8:47 AM, Eric Wald <[email protected]> wrote:

>
> For example:
>
>     git log --oneline -S'nVersion&0xff' origin fork1 fork2 --
>
> will show all commits that add or remove that string, in all three
> branches.
>

As much as I love the command line, this type of search is usually more
productive for me in a (t|g)ui.  Try 'gitk --all' then select the
"adding/removing string:" search option and type 'nVersion&0xff' in the
search box.

That just makes it a lot easier to look around at the commits before and
after the search hits without running another command, and sometimes that's
important.

I wish I could help with the C++, but it's been too long.  I don't remember
the precedence rules -- does pstart->nVersion&0xff mean
(pstart->nVersion)&0xff (the lower 8 bits only of the value), or
pstart->(nVersion&0xff) (limit index to 8 bits)?

/*
PLUG: http://plug.org, #utah on irc.freenode.net
Unsubscribe: http://plug.org/mailman/options/plug
Don't fear the penguin.
*/

Reply via email to