Re: git-commit: allow From: line to be entered in commit message
- From
sean <seanlkml@sympatico.ca>
- Date
- Jan 13, 2006, 02:43 UTC
- Message-ID
- <BAYC1-PASMTP0804299A4D3C5C1973FF6CAE260@CEZ.ICE>
- In-Reply-To
- <43C6CFC5.5010902@op5.se>
On Thu, 12 Jan 2006 22:53:09 +0100 Andreas Ericsson <ae@op5.se> wrote:
Show 20 quoted lines
> Junio C Hamano wrote: > > > > If you typed that line, why somebody else's change ended up in > > your working tree is a mystery to me, but let's say an > > office-mate edited things for you and said "this should work. > > test it out and if it is OK commit it for me." I have seen this > > kind of thing done in real life. > > > This happens from time to time where I work, but I think it would be > more useful to have > > --from="Some User <some.user@theoffice.org>" > > which would save even more typing. > > I had thought of coupling this with some translation-scheme thingie, so > that "--from=jd" would be automagically converted to the proper name and > email address. I first came to think about this when I imported most of > our projects from CVS, but I ended up doing a quick-hack to > git-cvsimport instead.
Yeah, this might be the way to go; however if you are cutting and pasting the commit message already, this might be slightly less convenient because now you have to copy-n-paste to the command line instead of just to your commit editor. Hopefully it would help to avoid the need for others to hack the scripts ;o) Also it would be nice if it could help simplify the git-am script as Junio suggested too.
Sean