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

Re: git has modified files after clean checkout

From
Caleb Cushing <xenoterracide@gmail.com>
Date
Jan 2, 2009, 05:49 UTC
Message-ID
<81bfc67a0901012149u23c8c9avb6f47817a56750c7@mail.gmail.com>
In-Reply-To
<200901012048.13630.trast@student.ethz.ch>
Show 7 quoted lines
> Do you have any .gitattributes?  A few days ago, ludde on IRC bumped
>  into the problem that git-checkout applies the .gitattributes that are
>  present in the tree *before* the checkout.  Naturally this means that
>  the .gitattributes do not apply at all during the first checkout at
>  the end of cloning.  In ludde's case, this caused git-blame to think
>  the file had all line endings changed compared to the index version.
>

no, no .gitattributes to my knowledge (file doesn't exist). but it's not just during the first checkout.

# On branch regen2 # Your branch is ahead of 'funtoo/funtoo.org' by 1 commit. # # Changed but not updated: # (use "git add <file>..." to update what will be committed) # # modified: app-admin/petrovich/files/petrovich-1.0.0-gentoo.diff # modified: app-cdr/mode2cdmaker/files/mode2cdmaker-1.5.1-gentoo.patch # modified: app-crypt/mhash/files/mhash-0.9.9-mutils-align.patch # modified: app-crypt/rainbowcrack/files/rainbowcrack-1.2+gcc-4.3.patch # modified: app-crypt/rainbowcrack/files/rainbowcrack-1.2-share.patch # modified: app-crypt/rainbowcrack/files/rainbowcrack-1.2-types.patch # modified: app-editors/leo/files/leoConfig.py.patch # modified: app-emacs/aspectj4emacs/files/aspectj4emacs-1.1_beta2-browse-url-new-window-gentoo.patch # modified: app-emacs/aspectj4emacs/files/aspectj4emacs-1.1_beta2-compile-log-gentoo.patch ... that continues on for a while, all that was done was a git pull funtoo funtoo.org

I haven't had time to test 1.6.1 yet
-- 
Caleb Cushing

http://xenoterracide.blogspot.com
Previous: Thomas RastNext: Caleb Cushing
Message 5 of 6 in “git has modified files after clean checkout”
  1. Caleb CushingDec 31, 2008
  2. David AguilarDec 31, 2008
  3. Caleb CushingJan 1, 2009
  4. Thomas RastJan 1, 2009
  5. Caleb CushingJan 2, 2009
  6. Caleb CushingJan 5, 2009

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.