{"thread":{"id":"62192","subject":"Can a note be pushed to origin?","startedAt":"2024-09-25T12:29:19Z","lastAt":"2024-10-02T01:39:19Z","messageCount":3,"participants":["Stephen Steves Linda Smith","Carlisle T. Hamlin"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"503465","messageId":"20240925122918.1719619615FF@thunderbird.smith.home","threadId":"62192","inReplyTo":null,"subject":"Can a note be pushed to origin?","fromName":"Stephen Steves Linda Smith","fromEmail":"ishchis2@gmail.com","sentAt":"2024-09-25T12:29:18Z","receivedAt":"2024-09-25T12:29:19Z","isPatch":false,"sender":{"key":"ishchis2@gmail.com","avatar":null},"body":"In a project that I am working on, some metadata is currently embedded in some \nsource files.  The question was asked yesterday if there is a way to move that \nmetadata a git specific file and link it to the source file or commit.\n\nI remembered that git has notes which can be used to add such data to a \ncommit, but I don't believe that such metadata gets pushed to origin nor \nfetched from origin but another user.  \n\nIs there a currently implemented way to do something like this?\n"},{"id":"503879","messageId":"98470a2b-9a5c-4a22-a913-5098185afb65@gmx.com","threadId":"62192","inReplyTo":"20240925122918.1719619615FF@thunderbird.smith.home","subject":"Re: Can a note be pushed to origin?","fromName":"Carlisle T. Hamlin","fromEmail":"hamlin.carlisle@gmx.com","sentAt":"2024-10-02T01:37:01Z","receivedAt":"2024-10-02T01:37:07Z","isPatch":false,"sender":{"key":"hamlin.carlisle@gmx.com","avatar":"https://gravatar.com/avatar/1b441f4fa2cb6c0ef10fd46f270645762e5250c1ba993e6cd4aa54bcaaf1da5c?d=mp&s=160"},"body":"You betcha.\n\nAdd to the 'origin' entry in the config file specific to your local\nrepository:\n\nfetch = +refs/notes/*:refs/notes/*\npush = *refs/notes/*:refs/notes/*\n\nJust be aware that other developers will remain blissfully unaware of\nyour notes unless they either expressly fetch notes for themselves, or\nreplicate your config setup as regards notes.\n\nGood luck!\n\nOn 9/25/24 05:29, Stephen Steves Linda Smith wrote:\n> In a project that I am working on, some metadata is currently embedded in some\n> source files.  The question was asked yesterday if there is a way to move that\n> metadata a git specific file and link it to the source file or commit.\n>\n> I remembered that git has notes which can be used to add such data to a\n> commit, but I don't believe that such metadata gets pushed to origin nor\n> fetched from origin but another user.\n>\n> Is there a currently implemented way to do something like this?\n>\n\n"},{"id":"503880","messageId":"b84512cd-2997-48f2-b4d7-b3c6b63f1c89@gmx.com","threadId":"62192","inReplyTo":"98470a2b-9a5c-4a22-a913-5098185afb65@gmx.com","subject":"Re: Can a note be pushed to origin?","fromName":"Carlisle T. Hamlin","fromEmail":"hamlin.carlisle@gmx.com","sentAt":"2024-10-02T01:39:15Z","receivedAt":"2024-10-02T01:39:19Z","isPatch":false,"sender":{"key":"hamlin.carlisle@gmx.com","avatar":"https://gravatar.com/avatar/1b441f4fa2cb6c0ef10fd46f270645762e5250c1ba993e6cd4aa54bcaaf1da5c?d=mp&s=160"},"body":"Oop - fat-fingered it; the commands are:\n\n > fetch = +refs/notes/*:refs/notes/*\n > push = +refs/notes/*:refs/notes/*\n\nAccidentally typed an asterisk before the push directive. Don't do that. :)\n\nOn 10/1/24 18:37, Carlisle T. Hamlin wrote:\n> You betcha.\n>\n> Add to the 'origin' entry in the config file specific to your local\n> repository:\n>\n> fetch = +refs/notes/*:refs/notes/*\n> push = *refs/notes/*:refs/notes/*\n>\n> Just be aware that other developers will remain blissfully unaware of\n> your notes unless they either expressly fetch notes for themselves, or\n> replicate your config setup as regards notes.\n>\n> Good luck!\n>\n> On 9/25/24 05:29, Stephen Steves Linda Smith wrote:\n>> In a project that I am working on, some metadata is currently embedded\n>> in some\n>> source files.  The question was asked yesterday if there is a way to\n>> move that\n>> metadata a git specific file and link it to the source file or commit.\n>>\n>> I remembered that git has notes which can be used to add such data to a\n>> commit, but I don't believe that such metadata gets pushed to origin nor\n>> fetched from origin but another user.\n>>\n>> Is there a currently implemented way to do something like this?\n>>\n>\n>\n\n"}]}