git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Junio C Hamano <junkio@cox.net>
To: "Francis Moreau" <francis.moro@gmail.com>
Cc: git@vger.kernel.org, "Johannes Schindelin" <Johannes.Schindelin@gmx.de>
Subject: Re: Remote git-describe ?
Date: Wed, 24 Jan 2007 04:21:01 -0800	[thread overview]
Message-ID: <7vps94fweq.fsf@assigned-by-dhcp.cox.net> (raw)
In-Reply-To: <38b2ab8a0701240313w64c2df57w2542b63eba2294e0@mail.gmail.com> (Francis Moreau's message of "Wed, 24 Jan 2007 12:13:17 +0100")

"Francis Moreau" <francis.moro@gmail.com> writes:

> ... Givinig that I would use it to describe the HEAD of the kernel repo:
>
>        $ git describe --remote=<git-server> HEAD
>
> this would make the server parse all commits between HEAD and the
> closest tag which seems to me a lot cheaper than downloading the whole
> repo...

Do you mean you want to have the server describe the HEAD the
server side has (not the HEAD in your repository)?  Why?

I suspect the real motivation of your question lies elsewhere
and not in "describe".

Suppose we had such a service on the server side, and you asked
the server twice and got these (at different times, of course):

	v2.6.20-rc5-g419dd83
	v2.6.20-rc5-gde14569

What useful information can you get between the two?  

Nothing.

The commit object names are like random numbers and 419dd83 may
or may not be older than de14569.  The "hash" part of the
output is meaningless for you until you actually have the
history to poke at with "git log", "git diff" and friends.

Another request might give you this:

	v2.6.20-rc6

At least, between this one and the previous two, you have a
little bit of information that you can use: "Ah, another
development phase."

So I suspect what you are after is not about using describe
remotely or describing where the HEAD is; you want to know if
there is a new tag near the tip since the last time you checked.

If that is the case, "git-ls-remote --tags" is probably what you
want. 

  parent reply	other threads:[~2007-01-24 12:21 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-24 10:31 Remote git-describe ? Francis Moreau
2007-01-24 11:03 ` Johannes Schindelin
2007-01-24 11:13   ` Francis Moreau
2007-01-24 11:29     ` Johannes Schindelin
2007-01-24 12:21     ` Junio C Hamano [this message]
2007-01-24 12:34       ` Junio C Hamano
2007-01-24 13:01         ` Santi Béjar
2007-01-24 13:57         ` Johannes Schindelin
2007-01-24 14:28           ` Simon 'corecode' Schubert
2007-01-24 15:23         ` Nicolas Pitre
2007-01-24 12:50       ` Francis Moreau

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=7vps94fweq.fsf@assigned-by-dhcp.cox.net \
    --to=junkio@cox.net \
    --cc=Johannes.Schindelin@gmx.de \
    --cc=francis.moro@gmail.com \
    --cc=git@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).