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

Re: git-add has gone lstat() mad

From
APAndy Parkins <andyparkins@gmail.com>
Date
Mar 31, 2007, 15:09 UTC
Message-ID
<200703311609.23309.andyparkins@gmail.com>
In-Reply-To
<86lkhdqx8y.fsf@blue.stonehenge.com>
On Saturday 2007, March 31, Randal L. Schwartz wrote:
Show 5 quoted lines
> Given that git currently doesn't maintain any metadata other than
> +x/-x, how are you maintaining the metadata for your homedir items? 
> I know some schemes were discussed here in the past, but I'm curious
> as to what you settled on. For example, your .netrc file needs to be
> 600, but git won't track that.

I'm not maintaining anything as yet; the experiment so far consists of .bashrc only :-)

Just storing my .inputrc, .bashrc, .vimrc and .gitconfig in a repository is probably going to give me all that I want. There aren't many other config files that I regularly update, and certainly not many that I update differently on different machines.

However, I plan to use a script to wrap the git calls so that I don't have to type GIT_WORK_DIR and GIT_DIR for every file I want to track. I plan to make it so that if you run this script with a checkout or other working tree changing command then I will run a function within it that reads the metadata out of a file that is stored in the repository which will restore those settings.

Ideally this functionality would be in hooks for pre-update-index and post-checkout-index or similar. But I have a feeling that the potential for conflicts makes it hard to do in reality.

Andy
-- 
Dr Andy Parkins, M Eng (hons), MIET
andyparkins@gmail.com
Previous: Randal L. SchwartzNext: Tom Prince
Message 7 of 10 in “git-add has gone lstat() mad”
  1. Andy ParkinsMar 30, 2007
  2. Andy ParkinsMar 30, 2007
  3. Junio C HamanoMar 31, 2007
  4. Linus TorvaldsMar 31, 2007
  5. Andy ParkinsMar 31, 2007
  6. Randal L. SchwartzMar 31, 2007
  7. Andy ParkinsMar 31, 2007
  8. Tom PrinceMar 31, 2007
  9. Junio C HamanoApr 1, 2007
  10. Andy ParkinsApr 1, 2007

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.