{"thread":{"id":"245","subject":"[PATCH] git-pasky: Add .gitrc directory to allow command defaults like with .cvsrc","startedAt":"2005-04-22T16:28:48Z","lastAt":"2005-04-22T16:38:20Z","messageCount":2,"participants":["Fabian Franz","Petr Baudis"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"1291","messageId":"200504221828.51752.FabianFranz@gmx.de","threadId":"245","inReplyTo":null,"subject":"[PATCH] git-pasky: Add .gitrc directory to allow command defaults like with .cvsrc","fromName":"Fabian Franz","fromEmail":"fabianfranz@gmx.de","sentAt":"2005-04-22T16:28:48Z","receivedAt":"2005-04-22T16:28:48Z","isPatch":true,"sender":{"key":"fabianfranz@gmx.de","avatar":null},"body":"-----BEGIN PGP SIGNED MESSAGE-----\nHash: SHA1\n\nHi,\n\none thing I liked about CVS was its way to configure default parameters for \ncommands.\n\nAnd as I really like the colored log output, I wanted it as default.\n\nWhile .cvsrc parsing would be quite expensive, using a directory + files \nshould be fairly cheap and result just in one additional stat-call.\n\nSo I added \"-c\" to ~/.gitrc/log and some code to parse this.\n\nIndex: git\n===================================================================\n- --- 0a9ee5a4d947b998a7ce489242800b39f98eeee5/git  (mode:100755 \nsha1:39969debd59ed51c57973c819cdcc3ca8a7da819)\n+++ uncommitted/git  (mode:100755)\n@@ -67,6 +67,7 @@\n        exit 1\n fi\n\n+[ -e \"$HOME/.gitrc/$cmd\" ] && set -- $(cat \"$HOME/.gitrc/$cmd\") \"$@\"\n\n case \"$cmd\" in\n \"add\")        gitadd.sh \"$@\";;\n\ncu\n\nFabian\n\nPS: Should the commandline parsing be cleaned up or do you want to do that \nafter first release of cogito? And if yes, do you want to use \"getopts\" or \nwould this be not supported on some systems?\n\nPPS: I'm fairly new to git, how do I create a diff with the signed-by fields \nand with what do I need to sign it?\n-----BEGIN PGP SIGNATURE-----\nVersion: GnuPG v1.2.4 (GNU/Linux)\n\niD8DBQFCaSZDI0lSH7CXz7MRAoq8AJwM2lxPfl0ej32WU7q6bh6WIq5+EACgghGn\nmvJzbvg6/bxWLFKfsP1ZEeI=\n=03wm\n-----END PGP SIGNATURE-----\n\n"},{"id":"1292","messageId":"20050422163820.GC7173@pasky.ji.cz","threadId":"245","inReplyTo":"200504221828.51752.FabianFranz@gmx.de","subject":"Re: [PATCH] git-pasky: Add .gitrc directory to allow command defaults like with .cvsrc","fromName":"Petr Baudis","fromEmail":"pasky@ucw.cz","sentAt":"2005-04-22T16:38:20Z","receivedAt":"2005-04-22T16:38:20Z","isPatch":true,"sender":{"key":"pasky@ucw.cz","avatar":"https://avatars.githubusercontent.com/u/18439?v=4"},"body":"Dear diary, on Fri, Apr 22, 2005 at 06:28:48PM CEST, I got a letter\nwhere Fabian Franz <FabianFranz@gmx.de> told me that...\n> Hi,\n\nHello,\n\n> PS: Should the commandline parsing be cleaned up or do you want to do that \n> after first release of cogito? And if yes, do you want to use \"getopts\" or \n> would this be not supported on some systems?\n\nI want to go for Perl in the longer term.\n\n> PPS: I'm fairly new to git, how do I create a diff with the signed-by fields \n> and with what do I need to sign it?\n\nPut\n\n\tSigned-off-by: Fabian Franz <FabianFranz@gmx.de>\n\nin front of your patch.\n\n-- \n\t\t\t\tPetr \"Pasky\" Baudis\nStuff: http://pasky.or.cz/\nC++: an octopus made by nailing extra legs onto a dog. -- Steve Taylor\n"}]}