{"thread":{"id":"22629","subject":"Subtle git completion hacks with aliases","startedAt":"2010-02-12T13:40:41Z","lastAt":"2010-02-12T13:40:41Z","messageCount":1,"participants":["Ulrik Sverdrup"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"134343","messageId":"a1b6cb1b1002120540o8ff8f50vec1c7b528d462b8a@mail.gmail.com","threadId":"22629","inReplyTo":null,"subject":"Subtle git completion hacks with aliases","fromName":"Ulrik Sverdrup","fromEmail":"ulrik.sverdrup@gmail.com","sentAt":"2010-02-12T13:40:41Z","receivedAt":"2010-02-12T13:40:41Z","isPatch":false,"sender":{"key":"ulrik.sverdrup@gmail.com","avatar":null},"body":"Relying on git refusing to use aliases that shadow git commands (and\nrightly so), but the git completion script taking them at face value,\nwe can customize the completion of plumbing and custom scripts.\n\n[alias]\n        # Make this plumbing command autocomplete\n        count-objects =\n        # Make this custom shell script (git-unmerged)  autocomplete\narguments as branches, not paths\n        unmerged = log\n\nGiven the firm beliefs in the aliases-shadowing-commands question, I\nthink the above should be pretty safe.\n\nUlrik\n"}]}