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

Re: Teach git status to do "git diff --name-status HEAD"

From
Jakub Narebski <jnareb@gmail.com>
Date
Sep 17, 2008, 11:04 UTC
Message-ID
<m3ej3jm3ux.fsf@localhost.localdomain>
In-Reply-To
<48D0C2DF.7010308@drmicha.warpmail.net>
Michael J Gruber <git@drmicha.warpmail.net> writes:
Show 13 quoted lines
> Martin Langhoff venit, vidit, dixit 17.09.2008 08:40:
> > I just did
> > 
> > $ git checkout -b mdl19-offlinetony
> > A       README.offline
> > M       lib/javascript.php
> >     (...)
> > A       lib/offline/offlinemoodle.user.js
> > 
> > I *like* this "brief status" style - takes me back to my cvs days :-).
> > Perusing the source I found show_local_changes() which in turn led me
> > to trying `git diff --name-status HEAD`. Now, including 'HEAD' in an
> > alias defined in git config is going to lead to trouble... :-/
[...]
Show 5 quoted lines
> > I might still make an alias to `git diff --name-status`. This would be
> > a great thing to have as git status "--brief" IMHO... :-)
> 
> git status also shows untracked files. I don't know how to tell diff to
> show untracked files as well. --diff-filter=X doesn't do it.
git-ls-files?
-- 
Jakub Narebski
Poland
ShadeHawk on #git
Previous: Michael J GruberNext: Michael J Gruber
Message 3 of 6 in “Teach git status to do "git diff --name-status HEAD"”
  1. Martin LanghoffSep 17, 2008
  2. Michael J GruberSep 17, 2008
  3. Jakub NarebskiSep 17, 2008
  4. Michael J GruberSep 17, 2008
  5. Mismatch between "git status" and "git ls-files" [was Re: Teach git status to do "git diff --name-status HEAD"]Michael J Gruber, Sep 17, 2008
  6. Jeff KingSep 17, 2008

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.