* head_points_at checked in as 47874d6
@ 2006-03-30 15:59 Yasushi SHOJI
0 siblings, 0 replies; only message in thread
From: Yasushi SHOJI @ 2006-03-30 15:59 UTC (permalink / raw)
To: Junio C Hamano; +Cc: git
Hi Junio,
Would you kindly explain what you are intended to do with the
following code checked in as 47874d6d9a7f49ade6388df049597f03365961ca ?
# The name under $remote_top the remote HEAD seems to point at
head_points_at=$(
(
echo "master"
cd "$GIT_DIR/$remote_top" &&
find . -type f -print | sed -e 's/^\.\///'
) | (
done=f
while read name
do
test t = $done && continue
branch_tip=`cat "$GIT_DIR/$remote_top/$name"`
if test "$head_sha1" = "$branch_tip"
then
echo "$name"
done=t
fi
done
)
)
What I don't understand are:
- why do we have to do 'echo "master"' for the top of the loop? is
this an optimization?
- why do we keep looping after done=t?
I just noticed this when I tried to clone a repo _without_ master
branch.
Thanks for your time. And sorry for my ignorants.
--
yashi
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-03-30 15:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-30 15:59 head_points_at checked in as 47874d6 Yasushi SHOJI
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.