{"thread":{"id":"15782","subject":"Question: How to list files that haven't been modified?","startedAt":"2008-10-04T20:07:33Z","lastAt":"2008-10-04T23:01:49Z","messageCount":2,"participants":["Mark Burton","Elijah Newren"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"92300","messageId":"loom.20081004T195935-879@post.gmane.org","threadId":"15782","inReplyTo":null,"subject":"Question: How to list files that haven't been modified?","fromName":"Mark Burton","fromEmail":"markb@ordern.com","sentAt":"2008-10-04T20:07:33Z","receivedAt":"2008-10-04T20:07:33Z","isPatch":false,"sender":{"key":"markb@ordern.com","avatar":null},"body":"\nHi,\n\nIt's still early days for me and I haven't yet discovered how to ask git to list\nall the files in a tree that don't have pending modifications (staged or not). I\nhave read about ls-files but it doesn't seem to offer that option. As far as I\ncan tell, it can list the files known to git and the files that have been\nmodified but not the difference between those sets.\n\nThanks,\n\nMark\n"},{"id":"92308","messageId":"51419b2c0810041601g5f9e3007p70af60b5db7a066a@mail.gmail.com","threadId":"15782","inReplyTo":"loom.20081004T195935-879@post.gmane.org","subject":"Re: Question: How to list files that haven't been modified?","fromName":"Elijah Newren","fromEmail":"newren@gmail.com","sentAt":"2008-10-04T23:01:49Z","receivedAt":"2008-10-04T23:01:49Z","isPatch":false,"sender":{"key":"newren@gmail.com","avatar":"https://avatars.githubusercontent.com/u/5455730?v=4"},"body":"On Sat, Oct 4, 2008 at 2:07 PM, Mark Burton <markb@ordern.com> wrote:\n>\n> Hi,\n>\n> It's still early days for me and I haven't yet discovered how to ask git to list\n> all the files in a tree that don't have pending modifications (staged or not). I\n> have read about ls-files but it doesn't seem to offer that option. As far as I\n> can tell, it can list the files known to git and the files that have been\n> modified but not the difference between those sets.\n\nYou could manually construct the difference between the lists:\n\n$ comm -3 <(git ls-files) <(git ls-files --modified)\n"}]}