git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: What did I just fetch?

From
Jakub Narebski <jnareb@gmail.com>
Date
Jan 31, 2007, 13:15 UTC
Message-ID
<epq4nl$ui7$1@sea.gmane.org>
In-Reply-To
<17856.37307.324767.617892@lisa.zopyra.com>
Bill Lear wrote:
Show 13 quoted lines
> When updating in cvs, I get a list of files changed by the update.
> 
> How can I do this in git when fetching into a bare repo?
> 
> % GIT_DIR=. git fetch git://source/project
> remote: Generating pack...
> remote: Done counting 18 objects.
> remote: Result has 10 objects.
> remote: Deltifying 10 objects.
> remote:  100% (10/10) done
> Unpacking 10 objects
> remote: Total 10, written 10 (delta 6), reused 7 (delta 3)
>  100% (10/10) done
You should have also something like below:
* refs/remotes/origin/master: fast forward to branch 'master' of git://source/project
  old..new: 1732a1f..73a2acc
> So, I'd like to see the files, perhaps the differences, etc.
 $ git diff --summary 1732a1f..73a2acc
 $ git diff --summary ORIG_HEAD..HEAD
Or, if you want to see the log instead:
 $ git log 1732a1f..73a2acc
 $ git log origin/master

By the way, you get summary automatically when doing pull, on merge (but not on fast-forward, I think).

-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
Previous: Bill LearNext: Bill Lear
Message 2 of 5 in “What did I just fetch?”
  1. Bill LearJan 31, 2007
  2. Jakub NarebskiJan 31, 2007
  3. Bill LearFeb 1, 2007
  4. Jakub NarebskiFeb 5, 2007
  5. Santi BéjarJan 31, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.