{"thread":{"id":"51662","subject":"git diff autocomplete","startedAt":"2019-08-18T02:44:32Z","lastAt":"2019-08-26T17:09:09Z","messageCount":4,"participants":["Dhaval Patel","Santiago Torres Arias","Andreas Schwab"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"380616","messageId":"CADSGPzV+dfNR=epmz2whKkrpiH=JMUR4gVjpZ+x+kzKrX0kD-A@mail.gmail.com","threadId":"51662","inReplyTo":null,"subject":"git diff autocomplete","fromName":"Dhaval Patel","fromEmail":"drdhaval2785@gmail.com","sentAt":"2019-08-18T02:44:15Z","receivedAt":"2019-08-18T02:44:32Z","isPatch":false,"sender":{"key":"drdhaval2785@gmail.com","avatar":null},"body":"How to reproduce\n\ngit init\ntouch abc.txt\ntouch abd.txt\ngit add a*\ngit commit -m 'first commit'\necho 'hello' > abc.txt\ngit add a[PRESS TAB]\n(This will autocomplete 'git add abc.txt')\ngit diff a[PRESS TAB]\n(This will not give 'git diff abc.txt')\n\nSuggested feature -\n\nwhen I press tab, git diff should autocomplete just like git add.\n"},{"id":"380617","messageId":"20190818024757.765fx3tdfekseim5@LykOS.localdomain","threadId":"51662","inReplyTo":"CADSGPzV+dfNR=epmz2whKkrpiH=JMUR4gVjpZ+x+kzKrX0kD-A@mail.gmail.com","subject":"Re: git diff autocomplete","fromName":"Santiago Torres Arias","fromEmail":"santiago@nyu.edu","sentAt":"2019-08-18T02:47:57Z","receivedAt":"2019-08-18T02:48:02Z","isPatch":false,"sender":{"key":"santiago@nyu.edu","avatar":"https://avatars.githubusercontent.com/u/3579933?v=4"},"body":"On Sun, Aug 18, 2019 at 08:14:15AM +0530, Dhaval Patel wrote:\n> How to reproduce\n> \n> [snip]\n> Suggested feature -\n> \n> when I press tab, git diff should autocomplete just like git add.\n\nI think this is somewhat harder of a usecase, as git add generally takes\npaths and diff can compare revisions *and* paths. I see that if I do\n\n    git diff -- [TAB]\n\nI get all the paths as an autocomplete option, which I think is desired\nbehavior.\n\nThanks,\n-Santiago.\n"},{"id":"381196","messageId":"CADSGPzVgweL4tCEqg3LvfXbp=HZyQ7BngKpVrFp0_0SFJZVezQ@mail.gmail.com","threadId":"51662","inReplyTo":"CADSGPzU6+AdMtrEnc98SHASmcmxGsj52Y99Dd5zvkOeRqWS-jQ@mail.gmail.com","subject":"git diff autocomplete","fromName":"Dhaval Patel","fromEmail":"drdhaval2785@gmail.com","sentAt":"2019-08-26T15:48:12Z","receivedAt":"2019-08-26T15:48:28Z","isPatch":false,"sender":{"key":"drdhaval2785@gmail.com","avatar":null},"body":"If it is only about files and revisions both being handled by git\ndiff, would it not ne possible to do something like this?\n\nFor files\n\ngit diff -f a[PRESS TAB]\n\nFor revisions\n\ngit diff -r a[PRESS TAB]\n\nSome sort of flag which says we are handling files or revisions.\n"},{"id":"381216","messageId":"87mufvzwen.fsf@igel.home","threadId":"51662","inReplyTo":"CADSGPzVgweL4tCEqg3LvfXbp=HZyQ7BngKpVrFp0_0SFJZVezQ@mail.gmail.com","subject":"Re: git diff autocomplete","fromName":"Andreas Schwab","fromEmail":"schwab@linux-m68k.org","sentAt":"2019-08-26T17:09:04Z","receivedAt":"2019-08-26T17:09:09Z","isPatch":false,"sender":{"key":"schwab@linux-m68k.org","avatar":"https://avatars.githubusercontent.com/u/2175493?v=4"},"body":"On Aug 26 2019, Dhaval Patel <drdhaval2785@gmail.com> wrote:\n\n> If it is only about files and revisions both being handled by git\n> diff, would it not ne possible to do something like this?\n>\n> For files\n>\n> git diff -f a[PRESS TAB]\n>\n> For revisions\n>\n> git diff -r a[PRESS TAB]\n>\n> Some sort of flag which says we are handling files or revisions.\n\nThat already exists, it is spelt `--'.\n\nAndreas.\n\n-- \nAndreas Schwab, schwab@linux-m68k.org\nGPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1\n\"And now for something completely different.\"\n"}]}