tags:

views:

94

answers:

3

Hi,

I'm looking for a way to list all updated files in the remote master branch, similar to svn log.

Is that possible in Git?

Thanks,
Christoffer

EDIT (Solution):

git fetch
git diff --name-status origin/master
+5  A: 

Without a checkout, you can do the git fetch and then git diff <theotherbranch>. Without a fetch I can't think of anything but web frontend.

Michael Krelin - hacker
If I would write a script (similar to a web frontend) to perform the operation, how would it work?
Christoffer
Well, you can ssh to the remote machine and do the same `git diff`.
Michael Krelin - hacker
Except for, of course, you would use the commit hash instead of HEAD. where commit hash is your local tip of the remote branch.
Michael Krelin - hacker
+1  A: 

A response to a comment: If I would write a script (similar to a web frontend) to perform the operation, how would it work?

git fetch
git diff <branchname> > otherbranch.diff

Or read git diff's stdout directly.

culebrón
+2  A: 

Hmmm... perhaps

git fetch
git log origin/master

is what you want (it doesn't show list of changed files, but list of commits on remote-tracking branch).

Jakub Narębski
With: `git fetch``git diff --name-status origin/master` I got what I wanted :)
Christoffer