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

Re: What to expect after GIT 0.99.7

From
Petr Baudis <pasky@suse.cz>
Date
Sep 19, 2005, 08:36 UTC
Message-ID
<20050919083650.GA22269@pasky.or.cz>
In-Reply-To
<7vwtldsbv2.fsf@assigned-by-dhcp.cox.net>

Dear diary, on Mon, Sep 19, 2005 at 10:25:21AM CEST, I got a letter where Junio C Hamano <junkio@cox.net> told me that...

Show 20 quoted lines
> Matthias Urlichs <smurf@smurf.noris.de> writes:
> 
> > Hi, Junio C Hamano wrote:
> >
> >> * Perhaps a tool to revert a single file to pre-modification
> >>   state?  git-cat-file blob `git-ls-files | grep foo` >foo or
> >>   git-cat-file blob `git-ls-tree HEAD foo` >foo?  What should
> >>   the command be called?  git-revert is taken so is
> >>   git-checkout.
> >
> > git-checkout can be extended to accept filenames, which would have the
> > additional benefit of enabling me to get any revision, not just HEAD.
> >
> > So can git-reset.
> >
> > I agree with Anton's "git clean"; with an optional -r <commit>
> > argument, that would be a better solution.
> 
> It probably is because I am BK untainted, but 'git clean' sounds
> as if it would do 'git-ls-files --others | xargs rm -f'.

FWIW, that's also what cg-clean does. It uses cg-restore -f filename to restore files to the state of the last commit, but it's not like I'd be terribly happy about that.

-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
If you want the holes in your knowledge showing up try teaching
someone.  -- Alan Cox
Previous: Junio C HamanoNext: Linus Torvalds
Message 20 of 28 in “GIT 0.99.6”
  1. Junio C HamanoSep 8, 2005
  2. Tool renames and 'ls-files -t' outputJunio C Hamano, Sep 8, 2005
  3. Post 0.99.7 preperation patchesJunio C Hamano, Sep 9, 2005
  4. Petr BaudisSep 12, 2005
  5. RFC: s/git-merge-base/git-find-common-ancestor/gYasushi SHOJI, Sep 11, 2005
  6. Junio C HamanoSep 11, 2005
  7. Rename git-merge-base to git-find-merge-baseYasushi SHOJI, Sep 11, 2005
  8. Tool rename fallout fixJunio C Hamano, Sep 9, 2005
  9. No GIT 0.99.7 todayJunio C Hamano, Sep 17, 2005
  10. [ANNOUNCE] GIT 0.99.7Junio C Hamano, Sep 18, 2005
  11. What to expect after GIT 0.99.7Junio C Hamano, Sep 18, 2005
  12. Linus TorvaldsSep 19, 2005
  13. Linus TorvaldsSep 19, 2005
  14. Johannes SchindelinSep 19, 2005
  15. Joachim B HagaSep 19, 2005
  16. Linus TorvaldsSep 19, 2005
  17. Anton AltaparmakovSep 19, 2005
  18. Matthias UrlichsSep 19, 2005
  19. Junio C HamanoSep 19, 2005
  20. Petr BaudisSep 19, 2005
  21. Linus TorvaldsSep 19, 2005
  22. [ANNOUNCE] Cogito-0.15Petr Baudis, Sep 19, 2005
  23. Pavel MachekSep 19, 2005
  24. Petr BaudisSep 20, 2005
  25. Linus TorvaldsSep 20, 2005
  26. Nigel CunninghamSep 19, 2005
  27. Chris WhiteSep 19, 2005
  28. Alan ChandlerSep 19, 2005

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.