Re: git commit -a -m'avoid an unnecessary sub-shell'

2011-01-04 Thread Ben Pfaff
Paul Eggert writes: > I'm trying to get changes into Emacs, though, and > Emacs uses Bazaar instead of git. Ouch. I suppose > I should ask for (or implement) Bazaar support in > vc-dwim? (I haven't yet even got Bazaar running > on my RHEL 5.5 host, alas.) The vc-dwim webpage says that it suppo

Re: git commit -a -m'avoid an unnecessary sub-shell'

2011-01-04 Thread Paul Eggert
On 01/04/11 10:29, Eric Blake wrote: > I start to prefer tools like Jim's > vc-dwim tool for creating good git commit messages. > http://www.gnu.org/software/vc-dwim/ Yes, I second that. vc-dwim is great. I'm trying to get changes into Emacs, though, and Emacs uses Bazaar instead of git. Ouch.

Re: git commit -a -m'avoid an unnecessary sub-shell'

2011-01-04 Thread Jim Meyering
Bruce Korb wrote: > On 01/04/11 10:12, Jim Meyering wrote: >> Hmm... I see you didn't push the same commit I suggested. > > Hmmm. I'm sorry. I actually clipped your change log and > copied what I had done previously for the actual fix. > I didn't notice we'd patched it differently. > > RE: >> It'

Re: git commit -a -m'avoid an unnecessary sub-shell'

2011-01-04 Thread Eric Blake
On 01/04/2011 11:23 AM, Bruce Korb wrote: > On 01/04/11 10:12, Jim Meyering wrote: >> Hmm... I see you didn't push the same commit I suggested. > > Hmmm. I'm sorry. I actually clipped your change log and > copied what I had done previously for the actual fix. > I didn't notice we'd patched it di

Re: git commit -a -m'avoid an unnecessary sub-shell'

2011-01-04 Thread Bruce Korb
On 01/04/11 10:12, Jim Meyering wrote: > Hmm... I see you didn't push the same commit I suggested. Hmmm. I'm sorry. I actually clipped your change log and copied what I had done previously for the actual fix. I didn't notice we'd patched it differently. RE: > It's a good policy to prefix the on

Re: git commit -a -m'avoid an unnecessary sub-shell'

2011-01-04 Thread Jim Meyering
Bruce Korb wrote: >> On 01/04/2011 01:54 AM, Jim Meyering wrote: Just for grins, how about trying: /bin/sh -c 'v=`exec 2>/dev/null;nonesuch`' I think it works for me on a Sun box: >> >> It also works on FreeBSD. >> >>> Good idea. Avoiding an unnecessary sub-shell is always

git commit -a -m'avoid an unnecessary sub-shell'

2011-01-04 Thread Bruce Korb
> On 01/04/2011 01:54 AM, Jim Meyering wrote: >>> Just for grins, how about trying: >>> >>> /bin/sh -c 'v=`exec 2>/dev/null;nonesuch`' >>> >>> I think it works for me on a Sun box: > > It also works on FreeBSD. > >> Good idea. Avoiding an unnecessary sub-shell is always welcome. >> I'll wait for