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

Re: noob user, want checkins to all be forced to LF terminated lines

From
David Aguilar <davvid@gmail.com>
Date
Jul 31, 2010, 15:12 UTC
Message-ID
<20100731151209.GA5693@gmail.com>
In-Reply-To
<i30fj8$cit$1@dough.gmane.org>
On Fri, Jul 30, 2010 at 11:24:34PM -0700, Walter Bright wrote:
Show 16 quoted lines
> Ilari Liusvaara wrote:
> >On Fri, Jul 30, 2010 at 10:45:36PM -0700, Walter Bright wrote:
> >
> >>>[1] But upon restore, the working copy cache will be wrong
> >>Why? Is it someplace else?
> >
> >It is inside .git directory and will be caught by full recursive
> >backup. Unfortunately, it contains i-node numbers, which aren't
> >preserved through backup and restore.
> >
> >The wrong i-node numbers would then confuse git (false positives
> >in modification detection). Fortunately, this data can be rebuilt
> >with single command (see below).
> 
> Hmm. One thing I wanted to get away from from Windows was the
> inability to restore files by just copying the tree.

I think we gave you too much information. Just copy the tree, that's all there is to see here...

> >>>and needs to be rebuilt (git update-index --refresh).
> 
> That's crucial to know. Thanks!
Actually, I think that's too much to know.

Casual git users can just say 'git status' and git will DTRT updating the index itself.

Sorry if the information in this thread made you think that there's "something else" that you have to worry about backing up. Nope, it's all just .git.

-- 
		David
Previous: Walter BrightNext: Jonathan Nieder
Message 8 of 16 in “noob user, want checkins to all be forced to LF terminated lines”
  1. Walter BrightJul 31, 2010
  2. Jonathan NiederJul 31, 2010
  3. Walter BrightJul 31, 2010
  4. Ilari LiusvaaraJul 31, 2010
  5. Walter BrightJul 31, 2010
  6. Ilari LiusvaaraJul 31, 2010
  7. Walter BrightJul 31, 2010
  8. David AguilarJul 31, 2010
  9. Jonathan NiederJul 31, 2010
  10. Walter BrightJul 31, 2010
  11. Ilari LiusvaaraJul 31, 2010
  12. Jonathan NiederJul 31, 2010
  13. Walter BrightJul 31, 2010
  14. Jay SoffianAug 3, 2010
  15. Will PalmerAug 4, 2010
  16. Miles BaderJul 31, 2010

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.