{"thread":{"id":"43237","subject":"Re: git-diff & cg-diff behavior difference","startedAt":"2006-12-17T17:11:35Z","lastAt":"2006-12-19T10:43:39Z","messageCount":3,"participants":["Vincent Legoll"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"295954","messageId":"4727185d0612170911l52fab839x694399db729fd62d@mail.gmail.com","threadId":"43237","inReplyTo":null,"subject":"git-diff & cg-diff behavior difference","fromName":"Vincent Legoll","fromEmail":"vincent.legoll@gmail.com","sentAt":"2006-12-17T17:11:35Z","receivedAt":"2006-12-17T17:11:35Z","isPatch":false,"sender":{"key":"vincent.legoll@gmail.com","avatar":null},"body":"I did not find something relevant in the docs, so I'll ask here.\n\ngit-diff works from everywhere in the tree, whereas cg-diff\ndoes not, is that intentional ?\n\nsteps to reproduce:\n--------------------\nmkdir tmp\ncd tmp\ntouch titi.txt\nmkdir tutu\ntouch tutu/toto.txt\ncg-init -I\ncg-add -r .\ncg-commit -C -m INIT\necho \"tata\" > titi.txt\ngit-diff\ncg-diff\ncd tutu\ngit-diff\ncg-diff\n--------------------\n\nThe 2 git-diff & 1st cg-diff outputs are the same, whereas the 2nd\ncg-diff one is empty...\n\nQuite a minor thing, but this could be added in the cg-diff man-page as a\ndifference of behavior.\n\n-- \n"},{"id":"294932","messageId":"4727185d0612190233w26188a56t50ad49d2de58b88b@mail.gmail.com","threadId":"43237","inReplyTo":"46a038f90612181249y5ee69a8al28e97a22dca80c81@mail.gmail.com","subject":"Re: git-diff & cg-diff behavior difference","fromName":"Vincent Legoll","fromEmail":"vincent.legoll@gmail.com","sentAt":"2006-12-19T10:33:21Z","receivedAt":"2006-12-19T10:33:21Z","isPatch":false,"sender":{"key":"vincent.legoll@gmail.com","avatar":null},"body":"On 12/18/06, Martin Langhoff <martin.langhoff@gmail.com> wrote:\n> I'd say that it's a bug that cg-diff doesn't work in a subdir.\n> However, there is a much more important difference between cg-diff and\n> git-diff: cg-diff is equivalent to git-diff HEAD because cogito hides\n> the index from you.\n\nThat's what I wanted to know: if it was a deliberate behavior, a bug on\nmy side, or on git's...\n\n> If you are developing in a (mostly) straight line, and not dealing\n> much with merges and rebases, that's a great simplification. If you\n> are coming from a different SCM it's probably a good thing too.\n\nThat's me and me !\n\n> If/when you want to use git's smarts for merging and rebasing, you'll\n> definitely want to know a lot more about the index, and you'll\n> probably stop using cogito.\n\nThat will be me some times...\n\n> (Actually, even though I know and love the index I use cogito all the\n> time, and switch to git commands for merging and rebasing. Works\n> great... and yet Linus is in a merge-centric role, so changing the\n> defaults to ignore the index most of the time is a bit of a hot issue\n\nThat's no problem with me, if behavior is properly documented...\n\n-- \n"},{"id":"294101","messageId":"4727185d0612190243j150bae79m954d096ebb89a9bc@mail.gmail.com","threadId":"43237","inReplyTo":"4727185d0612190233w26188a56t50ad49d2de58b88b@mail.gmail.com","subject":"Re: git-diff & cg-diff behavior difference","fromName":"Vincent Legoll","fromEmail":"vincent.legoll@gmail.com","sentAt":"2006-12-19T10:43:39Z","receivedAt":"2006-12-19T10:43:39Z","isPatch":false,"sender":{"key":"vincent.legoll@gmail.com","avatar":null},"body":"On 12/19/06, Vincent Legoll <vincent.legoll@gmail.com> wrote:\n> That's what I wanted to know: if it was a deliberate behavior, a bug on\n> my side, or on git's...\n\nErrr, I meant cogito's...\n\n-- \n"}]}