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

git log vs git diff vs --name-status

From
VMiklos <vmiklos@frugalware.org>
Date
Aug 23, 2007, 08:43 UTC
Message-ID
<20070823084315.GA31174@genesis.frugalware.org>
hi,

$ git diff HEAD --name-status M dir/foo1

then i commit this change, and git log says:
$ git log --name-status -1
commit c9128f447c614d5b085286d9d7e84a643fbaea92
Author: VMiklos <vmiklos@frugalware.org>
Date:   Thu Aug 23 10:41:38 2007 +0200
    foo
M       dir

only. no /foo1. also is the file is dir/subdir/file1, then only "M dir" is shown. is this inconsistency expected?

yes, i know that using --stats this problem could go away, but i speak about --name-status

thanks,
- VMiklos
Next: VMiklos
Message 1 of 4 in “git log vs git diff vs --name-status”
  1. VMiklosAug 23, 2007
  2. VMiklosAug 23, 2007
  3. Junio C HamanoAug 23, 2007
  4. VMiklosAug 24, 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.