git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Martin Langhoff" <martin@laptop.org>
To: "Git Mailing List" <git@vger.kernel.org>
Subject: Teach git status to do "git diff --name-status HEAD"
Date: Wed, 17 Sep 2008 18:40:10 +1200	[thread overview]
Message-ID: <aba84270809162340n4ea3f5feqc71d01fa6e035b79@mail.gmail.com> (raw)

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... :-/

I might still make an alias to `git diff --name-status`. This would be
a great thing to have as git status "--brief" IMHO... :-)

cheers,



m
-- 
 martin@laptop.org -- School Server Architect
 - ask interesting questions
 - don't get distracted with shiny stuff - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff

             reply	other threads:[~2008-09-17  6:41 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-17  6:40 Martin Langhoff [this message]
2008-09-17  8:42 ` Teach git status to do "git diff --name-status HEAD" Michael J Gruber
2008-09-17 11:04   ` Jakub Narebski
2008-09-17 11:26     ` Michael J Gruber
2008-09-17 15:16     ` Mismatch between "git status" and "git ls-files" [was Re: Teach git status to do "git diff --name-status HEAD"] Michael J Gruber
2008-09-17 17:31       ` Jeff King

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aba84270809162340n4ea3f5feqc71d01fa6e035b79@mail.gmail.com \
    --to=martin@laptop.org \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).