git incoming diffs?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

git incoming diffs?

Eliot Miranda-2
 
Hi All,

    thanks for the git incoming script that lists the commits that are pending to be pulled.  IUt reads:

        incoming = "!git remote update -p; git log ..@{u}"

How do I list the files that would be changed?

How do I diff the files that would be changed?

AdvThanksance
_,,,^..^,,,_
best, Eliot
Reply | Threaded
Open this post in threaded view
|

Re: git incoming diffs?

Nicolas Passerini
 
 
How do I list the files that would be changed?

git diff --name-only @{u} 

How do I diff the files that would be changed?


git diff @{u} 


Your "local copy of the remote branch" (which is referenced by @{u}) should be updated, so maybe you want to do "git remote update" first or "git fetch". But if you already did it in your first command, it is not necessary to do it again.