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

Re: Proposal for git stash rename

From
Michael Haggerty <mhagger@alum.mit.edu>
Date
Jan 9, 2013, 08:38 UTC
Message-ID
<50ED2C78.1030300@alum.mit.edu>
In-Reply-To
<7vbod4tynt.fsf@alter.siamese.dyndns.org>
On 01/04/2013 10:40 PM, Junio C Hamano wrote:
Show 14 quoted lines
> Micheil Smith <micheil@brandedcode.com> writes:
> 
>>> This patch implements a "git stash rename" using a new
>>> "git reflog update" command that updates the message associated
>>> with a reflog entry.
>> ...
>> I note that this proposal is now two years old. A work in progress patch was 
>> requested, however, after one was given this thread ended. I'm also finding 
>> a need for this feature;
> 
> The whole point of reflog is that it is a mechanism to let users to
> go safely back to the previous state, by using a file that is pretty
> much append-only.  It feels that a mechanism to "rewrite" one goes
> completely against that principle, at least to me.

The implementation of "git stash" itself seems to violate your principle, by storing its branches-that-are-not-branches within a mutable reflog.

Just an observation...
Michael
-- 
Michael Haggerty
mhagger@alum.mit.edu
http://softwareswirl.blogspot.com/
Previous: Junio C Hamano
Message 6 of 6 in “Proposal for git stash rename”
  1. Greg HewgillJun 20, 2010
  2. Ævar Arnfjörð BjarmasonJun 20, 2010
  3. Greg HewgillJun 20, 2010
  4. Micheil SmithJan 4, 2013
  5. Junio C HamanoJan 4, 2013
  6. Michael HaggertyJan 9, 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.