git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Notes and submodules

From
FMFrancis Moreau <francis.moro@gmail.com>
Date
Aug 20, 2013, 08:39 UTC
Message-ID
<CAC9WiBiJQ-kafY5xD9nAnxKPQTyhp5sL49szHQj4C4P_UbBmYg@mail.gmail.com>
In-Reply-To
<CALKQrgfGUMrcR+EPTvN9+mFPcW6Q-zv1JM6MJK-61BvF3yYpbQ@mail.gmail.com>
Hello,
On Mon, Aug 19, 2013 at 3:55 PM, Johan Herland <johan@herland.net> wrote:
Show 16 quoted lines
> On Mon, Aug 19, 2013 at 10:13 AM, Francis Moreau <francis.moro@gmail.com> wrote:
>> Hello,
>>
>> Is it possible to keep submodules notes in the super project  ?
>
> Not easily. I guess it depends on what you want to use the notes for.
> In order for notes to be generally useful (i.e. show up in logs,
> surviving a notes prune, etc.) they really must reside in the same
> repo as the annotated objects [1]. Now, if all your interaction with
> notes happens through scripts that you control, then I guess it would
> be possible to hack this in some sort of semi-workable way, but you
> would still have to make sure never to run "git notes prune" in the
> super project. I guess the real question here is: Why would you want
> to do this? and is there maybe some other way your use case can be
> accomodated?
>

Well, I'm tracking different foreign git repositories as submodules. Those repositories which tracks different projects are not mine therefore I can't save my own stuff directly in them. I need to annotate some commits in each submodule.

One option would be to clone each repository in my own place, but I though it would be simpler if I could store the anntotion in _my_ super project.

Thanks for your time.
-- 
Francis
Previous: Johan HerlandNext: Johan Herland
Message 3 of 4 in “Notes and submodules”
  1. Francis MoreauAug 19, 2013
  2. Johan HerlandAug 19, 2013
  3. Francis MoreauAug 20, 2013
  4. Johan HerlandAug 20, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.