From: Junio C Hamano <gitster@pobox.com>
To: Thomas Rast <trast@student.ethz.ch>
Cc: Mildred Ki'Lya <mildred-ml@mildred.fr>, <git@vger.kernel.org>
Subject: Re: Feature idea : notes to track status of a commit, which remotes it is shared to
Date: Tue, 19 Feb 2013 10:55:15 -0800 [thread overview]
Message-ID: <7vsj4s5e24.fsf@alter.siamese.dyndns.org> (raw)
In-Reply-To: <87bobgtxvk.fsf@pctrast.inf.ethz.ch> (Thomas Rast's message of "Tue, 19 Feb 2013 11:13:19 +0100")
Thomas Rast <trast@student.ethz.ch> writes:
> Mildred Ki'Lya <mildred-ml@mildred.fr> writes:
>
>> The idea is to basically track automatically (in notes, either in the
>> notes namespace or in another namespace) which repository/remote
>> contains a commit. When doing git log, we'd see lines with each
>> commit, something like:
>>
>> commit b044e6d0f1a1782820b052348ab0db314e2db3ca
>> Author: Myself <myself@localhost.localdomain>
>> Date: Tue Nov 20 16:46:38 2012 +0100
>>
>> This is the commit description
>>
>> Published on:
>> origin
>> git@git.host.com:pub/repo.git
>
> The problem here is that doing this in notes is unreliable: you'd have
> to identify all places where the set of "publishes" can change for any
> commit, and update them there.
Unreliable you can fix with effort.
But I think a bigger problem is that it is a pointless "false
economy" to attempt to record and try to maintain this note for each
and every commit.
When you push out a tip of the branch to a new location, you would
have to update notes to all commits from that tip down to where in
the history to record that new location? To the root? Also your
upstream may fetch from your published place and you may fetch it
back (you will notice that now the commit appears in your 'origin').
Would you do the traversal and update all notes?
It is both much easier and cheaper to compute this on demand as you
pointed out.
next prev parent reply other threads:[~2013-02-19 18:57 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-19 9:38 Feature idea : notes to track status of a commit, which remotes it is shared to Mildred Ki'Lya
2013-02-19 10:13 ` Thomas Rast
2013-02-19 10:34 ` W. Trevor King
2013-02-19 18:55 ` Junio C Hamano [this message]
2013-02-19 10:30 ` W. Trevor King
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=7vsj4s5e24.fsf@alter.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=mildred-ml@mildred.fr \
--cc=trast@student.ethz.ch \
/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.