{"thread":{"id":"4114","subject":"[PATCH] Fix cg-object-id to lookup parents in the Right Way","startedAt":"2006-05-09T22:49:24Z","lastAt":"2006-05-09T22:49:24Z","messageCount":1,"participants":["Yann Dirson"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"19806","messageId":"20060509224924.7400.93511.stgit@gandelf.nowhere.earth","threadId":"4114","inReplyTo":null,"subject":"[PATCH] Fix cg-object-id to lookup parents in the Right Way","fromName":"Yann Dirson","fromEmail":"ydirson@altern.org","sentAt":"2006-05-09T22:49:24Z","receivedAt":"2006-05-09T22:49:24Z","isPatch":true,"sender":{"key":"ydirson@altern.org","avatar":"https://avatars.githubusercontent.com/u/1190950?v=4"},"body":"\nThis causes grafts to not be ignored any more, allowing\ncg-admin-rewritehist to work as expected on grafted commits.\n\nSigned-off-by: Yann Dirson <ydirson@altern.org>\n---\n\n cg-object-id |    2 +-\n 1 files changed, 1 insertions(+), 1 deletions(-)\n\ndiff --git a/cg-object-id b/cg-object-id\nindex ee23082..71c72e5 100755\n--- a/cg-object-id\n+++ b/cg-object-id\n@@ -147,7 +147,7 @@ fi\n \n \n if [ \"$show_parent\" ]; then\n-\tgit-cat-file commit \"$normid\" | sed -ne 's/^parent //p;/^$/q'\n+\tgit-rev-list --parents -n 1 \"$normid\"| tr ' ' '\\n'|tail +2\n \texit 0\n fi\n \n"}]}