{"thread":{"id":"39887","subject":"New flag (and trailer) for git-quiltimport.sh and git format-patch","startedAt":"2015-07-18T20:04:55Z","lastAt":"2015-07-18T20:04:55Z","messageCount":1,"participants":["Spencer Baugh"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"266340","messageId":"87h9p1qljs.fsf@earth.i-did-not-set--mail-host-address--so-tickle-me","threadId":"39887","inReplyTo":null,"subject":"New flag (and trailer) for git-quiltimport.sh and git format-patch","fromName":"Spencer Baugh","fromEmail":"sbaugh@catern.com","sentAt":"2015-07-18T20:04:55Z","receivedAt":"2015-07-18T20:04:55Z","isPatch":false,"sender":{"key":"sbaugh@catern.com","avatar":null},"body":"\nHi git list,\n\nI think it would be useful if git-quiltimport.sh recognized a flag to\ntell it to add a \"QuiltFilename:\" or \"PatchFilename:\" trailer to each\nimported commit, which would show the filename of the patch that that\ncommit was imported from.\n\nThis would make it much easier (reliably possible, in fact) to match up\nimported commits with their original patch; this is something I\nfrequently want to do, since the original patches might have additional\ninformation associated with them that is not imported into git. (For\nexample, a comment in the quilt \"series\" file, or version control\nhistory of the patch if it is kept in version control).\n\nIf such a flag and trailer were added, I think another useful addition\ncould be made to git format-patch: a flag to read the \"PatchFilename: \"\ntrailer and create the patch with that name. This would make it possible\nto use git format-patch to regenerate the entire quilt patch series\nwithout changing the filename or performing other unnecessary\nchurn. This is desirable because git tools like interactive rebase are\nvery powerful for manipulating a patch series, and it would be nice to\nbe able to use those without unnecessarily renaming all the patches.\n\n(Of course, it would be even nicer to be able to just maintain these\npatches in git... but sometimes you really do need them as a patch\nseries, in which case this ability would come in handy)\n\n(And of course, format-patch still causes some other churn, like adding\nthe \"From HASH DATE\" line at the top of the patch and updating the\nversion number at the bottom, so it would be nice if there were flags to\nstop it from adding those as well)\n\nI can write patches to add all these features, but I thought it was best\nto ask first, since adding a new pseudo-header/trailer might be a\nradical step. I could alternatively do all of this with some local bash\nscripts wrapping quiltimport and format-patch, but I think these\nfeatures might be useful to others too.\n\nThanks!\n"}]}