{"thread":{"id":"22483","subject":"[TOPGIT PATCH] Make 'tg patch' work in subdirectories","startedAt":"2010-02-02T10:31:12Z","lastAt":"2010-02-02T10:55:59Z","messageCount":2,"participants":["Michal Sojka","Uwe Kleine-König"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"133345","messageId":"1265106672-18518-1-git-send-email-sojkam1@fel.cvut.cz","threadId":"22483","inReplyTo":null,"subject":"[TOPGIT PATCH] Make 'tg patch' work in subdirectories","fromName":"Michal Sojka","fromEmail":"sojkam1@fel.cvut.cz","sentAt":"2010-02-02T10:31:12Z","receivedAt":"2010-02-02T10:31:12Z","isPatch":true,"sender":{"key":"sojkam1@fel.cvut.cz","avatar":"https://avatars.githubusercontent.com/u/140542?v=4"},"body":"When 'tg patch' is called from a subdirectory, it outputs only the\ncommit message and no diff.\n\nSigned-off-by: Michal Sojka <sojkam1@fel.cvut.cz>\n\n---\n tg-patch.sh |    1 +\n 1 files changed, 1 insertions(+), 0 deletions(-)\n\ndiff --git a/tg-patch.sh b/tg-patch.sh\nindex d701c54..f703a87 100644\n--- a/tg-patch.sh\n+++ b/tg-patch.sh\n@@ -56,6 +56,7 @@ git diff --name-only $diff_opts \"$base_rev\" ${diff_committed_only:+\"$name\"} -- |\n \tfgrep -vx \".topdeps\" |\n \tfgrep -vx \".topmsg\" >\"$git_is_stupid\" || : # fgrep likes to fail randomly?\n if [ -s \"$git_is_stupid\" ]; then\n+\tcd \"$root_dir\"\n \tcat \"$git_is_stupid\" | xargs git diff --patch-with-stat $diff_opts \"$base_rev\" ${diff_committed_only:+\"$name\"} --\n else\n \techo \"No changes.\"\n-- \ntg: (341a371..) t/make-patch-work-in-subdir (depends on: master)\n"},{"id":"133346","messageId":"20100202105559.GB32099@pengutronix.de","threadId":"22483","inReplyTo":"1265106672-18518-1-git-send-email-sojkam1@fel.cvut.cz","subject":"Re: [TOPGIT PATCH] Make 'tg patch' work in subdirectories","fromName":"Uwe Kleine-König","fromEmail":"u.kleine-koenig@pengutronix.de","sentAt":"2010-02-02T10:55:59Z","receivedAt":"2010-02-02T10:55:59Z","isPatch":true,"sender":{"key":"u.kleine-koenig@pengutronix.de","avatar":"https://gravatar.com/avatar/354b5e3ceb2806a2f1e1e382ac29ddbdad18288654da62b61eb13583a857eee7?d=mp&s=160"},"body":"Hello Michal,\n\nOn Tue, Feb 02, 2010 at 11:31:12AM +0100, Michal Sojka wrote:\n> When 'tg patch' is called from a subdirectory, it outputs only the\n> commit message and no diff.\nThanks\n\nUwe\n\n-- \nPengutronix e.K.                              | Uwe Kleine-König            |\nIndustrial Linux Solutions                    | http://www.pengutronix.de/  |\n"}]}