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

Re: [RFC PATCH 1/1] recover: restoration of deleted worktree files

From
Robert P. J. Day <rpjday@crashcourse.ca>
Date
Aug 4, 2018, 16:17 UTC
Message-ID
<alpine.LFD.2.21.1808041214550.28242@localhost.localdomain>
In-Reply-To
<xmqqpnyyt9di.fsf@gitster-ct.c.googlers.com>
On Sat, 4 Aug 2018, Junio C Hamano wrote:
Show 6 quoted lines
> Edward Thomson <ethomson@edwardthomson.com> writes:
>
> > Introduce git-recover, a simple script to aide in restoration of
> > deleted worktree files.  This will look for unreachable blobs in
> > the object database and prompt users to restore them to disk,
> > either interactively or on the command-line.
Show 16 quoted lines
> >  git-recover.sh | 311 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> >  1 file changed, 311 insertions(+)
> >  create mode 100755 git-recover.sh
>
> My first reaction was to say that I am not going to take a new
> command written only for bash with full bashism, even if it came
> with docs, tests nor Makefile integration, for Git itself.  Then I
> reconsidered, as not everything related to Git is git-core, and all
> of the above traits are sign of this patch _not_ meant for git-core.
>
> In other words, I think this patch can be a fine addition to
> somebody else's project (i.e. random collection of scripts that may
> help Git users), so let's see how I can offer comments/inputs to
> help you improve it.  So I won't comment on lang, log message, or
> shell scripting style---these are project convention and the
> git-core convention won't be relevant to this patch.
  not sure how relevant this is, but fedora bundles a bunch of neat
utilities into two packages: git-tools and git-extras. i have no idea
what relationship those packages have to official git, or who decides
what goes into them.
rday
-- 
========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                  http://crashcourse.ca/dokuwiki

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================
Previous: Junio C HamanoNext: Todd Zullinger
Message 6 of 8 in “Introduce git-recover”
  1. 0/1 Introduce git-recoverEdward Thomson, Aug 4, 2018
  2. 1/1 recover: restoration of deleted worktree filesEdward Thomson, Aug 4, 2018
  3. Junio C HamanoAug 4, 2018
  4. Edward ThomsonAug 4, 2018
  5. Junio C HamanoAug 4, 2018
  6. Robert P. J. DayAug 4, 2018
  7. Todd ZullingerAug 4, 2018
  8. Jonathan NiederAug 5, 2018

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.