{"thread":{"id":"10774","subject":"git submodules and diffing","startedAt":"2007-11-09T21:19:25Z","lastAt":"2007-11-10T00:46:00Z","messageCount":3,"participants":["Sven Herzberg","Jakub Narebski"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"59127","messageId":"4D079E0B-D6FB-4FBA-B449-2EFBFD5A5DE4@imendio.com","threadId":"10774","inReplyTo":null,"subject":"git submodules and diffing","fromName":"Sven Herzberg","fromEmail":"sven@imendio.com","sentAt":"2007-11-09T21:19:25Z","receivedAt":"2007-11-09T21:19:25Z","isPatch":false,"sender":{"key":"sven@imendio.com","avatar":"https://gravatar.com/avatar/1f83ce0b96e74412ae010be6343303fd5fcfa7f87aa1092b53002c4366c9af5e?d=mp&s=160"},"body":"Hi,\n\nwhen I started working with git submodules, I realized that git-diff  \nonly lists the revision ids of a submodule if it has changed. I have  \ncreated a repository which includes a diff command for git-submodule,  \nso you can use it like \"gut submodule diff <modules...>\"\n\nI pushed my git tree at git://git.imendio.com/sven/git.git\n\nFeel free to look into the changes and request improvements or merge  \nit into your tree.\n\nRegards,\n   Sven\n\nPS: Please CC me, I'm not on this list\n"},{"id":"59134","messageId":"1194649057-19676-1-git-send-email-jnareb@gmail.com","threadId":"10774","inReplyTo":"4D079E0B-D6FB-4FBA-B449-2EFBFD5A5DE4@imendio.com","subject":"Re: git submodules and diffing","fromName":"Jakub Narebski","fromEmail":"jnareb@gmail.com","sentAt":"2007-11-09T22:57:37Z","receivedAt":"2007-11-09T22:57:37Z","isPatch":false,"sender":{"key":"jnareb@gmail.com","avatar":"https://avatars.githubusercontent.com/u/2706?v=4"},"body":"Sven Herzberg wrote:\n\n> When I started working with git submodules, I realized that git-diff  \n> only lists the revision ids of a submodule if it has changed. I have  \n> created a repository which includes a diff command for git-submodule,  \n> so you can use it like \"gut submodule diff <modules...>\"\n> \n> I pushed my git tree at git://git.imendio.com/sven/git.git\n\nI have checked it int the gitweb at\n  http://git.imendio.com/?p=sven/git.git\n\n> Feel free to look into the changes and request improvements or merge  \n> it into your tree.\n\nAs far as I can see that is single patch (single commit) on top of\ngit.git repository, so you could have send this patch to the list,\nto be commented upon.\n\nAlthough having \"git submodule diff\" is quite nice, I'd rather have\n\"git diff --recurse-submodules\" (or something like that) if I want to\nget diff of submodules.\n\n>From browsing commitdiff\n  http://git.imendio.com/?p=sven/git.git;a=commitdiff;h=7fa1d4911d1ac2590ab1eccd84a7f235aca7878e\nI'd like to mention that instead of\n\n  (unset GIT_DIR && cd \"$path\" && git diff $flag \"$sha1..HEAD\")\n\nyou can simply use\n\n  git --git-dir=\"$path\" diff $flag \"$sha1..HEAD\"\n\nNote that you can write \"$sha1..\" (but it is a bit cryptic)\n\n> PS: Please CC me, I'm not on this list\n\nYou can always read list using NNTP / news / Usenet interface at\n  nntp://news.gmane.org/gmane.comp.version-control.git\nor one of the mailing list archives, see\n  http://git.or.cz/gitwiki/GitCommunity\n\n-- \nJakub Narebski\nWarsaw, Poland\nShadeHawk on #git\n"},{"id":"59152","messageId":"C3A79C8B-2953-4A9F-B0BE-78CEA375393B@imendio.com","threadId":"10774","inReplyTo":"1194649057-19676-1-git-send-email-jnareb@gmail.com","subject":"Re: git submodules and diffing","fromName":"Sven Herzberg","fromEmail":"sven@imendio.com","sentAt":"2007-11-10T00:46:00Z","receivedAt":"2007-11-10T00:46:00Z","isPatch":false,"sender":{"key":"sven@imendio.com","avatar":"https://gravatar.com/avatar/1f83ce0b96e74412ae010be6343303fd5fcfa7f87aa1092b53002c4366c9af5e?d=mp&s=160"},"body":"Hey Jakub,\n\nAm 09.11.2007 um 23:57 schrieb Jakub Narebski:\n\n> Sven Herzberg wrote:\n>\n>> When I started working with git submodules, I realized that git-diff\n>> only lists the revision ids of a submodule if it has changed. I have\n>> created a repository which includes a diff command for git-submodule,\n>> so you can use it like \"gut submodule diff <modules...>\"\n>>\n>> I pushed my git tree at git://git.imendio.com/sven/git.git\n\n>   http://git.imendio.com/?p=sven/git.git\n>\n>> Feel free to look into the changes and request improvements or merge\n>> it into your tree.\n>\n> Although having \"git submodule diff\" is quite nice, I'd rather have\n> \"git diff --recurse-submodules\" (or something like that) if I want to\n> get diff of submodules.\n\nI think it's pretty nice if git-submodule is the only command that  \nknows about submodules.\n\n> From browsing commitdiff\n>   http://git.imendio.com/?p=sven/ \n> git.git;a=commitdiff;h=7fa1d4911d1ac2590ab1eccd84a7f235aca7878e\n> I'd like to mention that instead of\n>\n>   (unset GIT_DIR && cd \"$path\" && git diff $flag \"$sha1..HEAD\")\n>\n> you can simply use\n>\n>   git --git-dir=\"$path\" diff $flag \"$sha1..HEAD\"\n\nIt wasn't exactly that simple (I has to add `pwd` and \"/.git\") but  \nthats for the hint. See the updated version in my repository.\n\n>> PS: Please CC me, I'm not on this list\n>\n> You can always read list using NNTP / news / Usenet interface at\n>   nntp://news.gmane.org/gmane.comp.version-control.git\n> or one of the mailing list archives, see\n>   http://git.or.cz/gitwiki/GitCommunity\n\nI know, but being CCed is a simple task and makes it even easier for  \nme to contribute in irregular intervals.\n\nThank you,\n   Sven\n"}]}