How can I "git log" only code published to trunk?
Posted
by Russell Silva
on Stack Overflow
See other posts from Stack Overflow
or by Russell Silva
Published on 2010-04-01T15:40:30Z
Indexed on
2010/04/01
15:43 UTC
Read the original article
Hit count: 276
At my workplace we have a "master" trunk branch that represents published code. To make a change, I check out a working copy, create a topic branch, commit to the topic branch, merge the topic branch into master, and push.
For small changes, I might commit directly to master, then push.
My problem is that when I use "git log", I don't care about my topic branches in my local working copy. I only want to see the changes to the master branch on the remote, shared git server. What's more, if I use --stat or -p or one of their friends, I want to see the files and changes associated with the merge commit to master, not associated to their original branch commits (which, like I said, I don't want to see at all).
How do I go about doing this?
© Stack Overflow or respective owner