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

tying files to git repository

From
JEJim Edwards <jedwards@ucar.edu>
Date
Nov 11, 2019, 15:28 UTC
Message-ID
<CAPuR+ZhwnHCp8j76PscuBqG2rCLkgG0+6Y3WwLgNRhaoj4OR9A@mail.gmail.com>
Hi,

I am a developer of scientific software, as science software we expect and encourage users to modify source code in order to customize their experiments. The mechanism which has been developed to do this predates having source code in git and we are trying to figure out a way to minimize changes to the scientists workflow, while leveraging the power of git to improve the process. In the workflow the scientist creates a 'case' using script in the repository to create a directory structure from which they will conduct their experiment. Part of that directory structure is a SourceMods directory where the user can drop modified source files that will be compiled in place of a file of the same name in the source tree. These files are sometimes long lived and passed from case to case and even user to user and it is not hard to have the files get out of sync with the source tree. We have discussed at length removing the SourceMods capability and requiring scientists to create branches in git, but there is a lot of resistance to this in the community. What I would like to explore is allowing scientists to keep the method that they are used to but at the same time tying these modified files to their history in git. Is there a way to get the git metadata associated with an individual file so that we can treat that file as if it were in the repo?

-- 
Jim Edwards

CESM Software Engineer
National Center for Atmospheric Research
Boulder, CO
Next: Philip Oakley
Message 1 of 2 in “tying files to git repository”
  1. Jim EdwardsNov 11, 2019
  2. Philip OakleyNov 26, 2019

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.