From: Matthieu Moy <Matthieu.Moy@grenoble-inp.fr>
To: Maaartin <grajcar1@seznam.cz>
Cc: git@vger.kernel.org
Subject: Re: Commiting automatically
Date: Sun, 10 Oct 2010 23:11:35 +0200 [thread overview]
Message-ID: <vpqzkulah2w.fsf@bauges.imag.fr> (raw)
In-Reply-To: <loom.20101010T212207-709@post.gmane.org> (Maaartin's message of "Sun\, 10 Oct 2010 19\:23\:56 +0000 \(UTC\)")
Maaartin <grajcar1@seznam.cz> writes:
> # the first parent should be autocom
> parent1="-p $(git show-ref -s refs/heads/autocom)"
> # needed for the very first use
> test -f .git/refs/heads/autocom || parent1=""
Don't use the content of .git/refs/ directly. Git can pack them, and
you can have a branch autocom packed in .git/info/refs without having it in
.git/refs/*
perhaps
parent1=$(git show-ref -s refs/heads/autocom)
if [ "$parent1" != "" ]; then
parent1="-p $parent1"
fi
?
--
Matthieu Moy
http://www-verimag.imag.fr/~moy/
prev parent reply other threads:[~2010-10-10 21:11 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-24 20:43 Commiting automatically Maaartin
2010-09-25 8:01 ` Ramkumar Ramachandra
2010-09-25 10:05 ` Alex Riesen
2010-10-10 19:23 ` Maaartin
2010-10-10 21:11 ` Matthieu Moy [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=vpqzkulah2w.fsf@bauges.imag.fr \
--to=matthieu.moy@grenoble-inp.fr \
--cc=git@vger.kernel.org \
--cc=grajcar1@seznam.cz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.