Re: Commiting automatically

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Maaartin <grajcar1@xxxxxxxxx> 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/
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]