From: deskinm@umich.edu
To: Alex Riesen <raa.lkml@gmail.com>
Cc: Mark Burton <markb@ordern.com>, git@vger.kernel.org
Subject: Re: How to list versioned files with modification status
Date: Sat, 4 Oct 2008 18:52:44 -0400 [thread overview]
Message-ID: <20081004225244.GD3052@riemann.deskinm.fdns.net> (raw)
In-Reply-To: <81b0412b0810041534o7b38507qe63db47cd07fdc16@mail.gmail.com>
On Sun, Oct 05, 2008 at 12:34:31AM +0200, Alex Riesen wrote:
> 2008/10/5 Mark Burton <markb@ordern.com>:
> > Alex Riesen <raa.lkml <at> gmail.com> writes:
> >> 2008/10/4 Mark Burton <markb <at> smartavionics.com>:
> >> > I would like to be able to easily find those files in a git tree that
> >> > don't have pending modifications. Although ls-files can list the
> >> > files that are modified, it can't list those that aren't or list all
> >> > files with their modification status.
> >>
> >> Maybe if you look at git diff and diff-index, you will find something
> >> what suits you better? Because "modification" is just a difference
> >> between a known (recorded in a commit or index) state and your
> >> working tree.
> >
> > 'git diff --name-status' looks useful but it only shows the files that have
> > changed - I would like to see the names of the files that haven't changed.
>
> There is nothing to do something like that, but...
>
> > Even svn could do that (svn status).
>
> what exactly are trying to achieve? It is just strange that no one
> asked for something like this before...
Apologies for the duplicate message; fighting between gmail and
vger.kernel.org.
Here's a terrible way to do this:
$ GIT_EDITOR=: git commit -a -m 'throwaway' >/dev/null
$ (git ls-tree -r HEAD; git ls-tree -r HEAD~1) \
| sort | uniq -d | sed -e 's/^[^ ]* [^ ]* [^\t]*\t//'
$ git reset HEAD~1 >/dev/null
Deskin Miller
next prev parent reply other threads:[~2008-10-04 22:56 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-04 12:12 How to list versioned files with modification status Mark Burton
2008-10-04 21:40 ` Alex Riesen
2008-10-04 22:09 ` Mark Burton
2008-10-04 22:34 ` Alex Riesen
2008-10-04 22:52 ` deskinm [this message]
2008-10-04 23:02 ` Mark Burton
2008-10-04 23:10 ` Linus Torvalds
2008-10-05 9:04 ` Mark Burton
2008-10-04 23:09 ` Dmitry Potapov
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=20081004225244.GD3052@riemann.deskinm.fdns.net \
--to=deskinm@umich.edu \
--cc=git@vger.kernel.org \
--cc=markb@ordern.com \
--cc=raa.lkml@gmail.com \
/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).