On Sun, Oct 05, 2008 at 12:34:31AM +0200, Alex Riesen wrote: > 2008/10/5 Mark Burton <markb@xxxxxxxxxx>: > > 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 -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html