Re: [PATCH v2 2/2] Make old sha1 optional with git update-ref -d

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Karl
Date: Monday, June 2, 2008 - 11:49 pm

On 2008-06-02 22:51:33 -0700, Junio C Hamano wrote:


I need this from time to time when experimenting with StGit -- or,
more precisely, when cleaning up afterwards in case it didn't go so
well. Packed refs means I can't safely just edit/delete files under
.git/refs anymore, so I use update-ref instead. And having to use the
safety belt every time is just plain tedious. I'd say this is a
perfect example of when using the plumbing by hand is really what you
want.

(In this kind of situation, branch -D often doesn't work since my ref
isn't under refs/heads, and besides I really don't want any of it's
smarts right then -- I want to delete a ref, nothing more.)

Better suggestions welcome, of course.

-- 
Karl Hasselström, kha@treskal.com
      www.treskal.com/kalle
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 2/3] Clean up builtin-update-ref's option parsing, Junio C Hamano, (Sun May 25, 11:40 am)
Re: [PATCH v2 2/2] Make old sha1 optional with git update- ..., Karl , (Mon Jun 2, 11:49 pm)