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

suggested feature: completely expunge a file (or just a delta) a la rebase

From
MCMike Coleman <tutufan@gmail.com>
Date
Apr 26, 2007, 05:48 UTC
Message-ID
<3c6c07c20704252248q3cd82d4cgcffb9852fa261a70@mail.gmail.com>

Here's an idea for a git feature. (Or perhaps this is already possible and I just don't see it.)

It would be nice to be able to completely expunge a file or delta from a private part of an archive ("private" meaning not yet published to others).

Here's my use case. I have some unit tests for my program, and I added some input and output for the tests to my git archive. Now I'm having second thoughts, as these files can be quite large, and I'm realizing what this implies with respect to git. Even the smallish test cases I checked in are 5-10MB, which is way larger than the codebase, and I'm not sure it makes sense to drag all of this around in the git archive. (Maybe it would be appropriate to put them in a parallel archive?)

Anyway, I realized that hacking the archive this way isn't very elegant, but maybe others would find it useful. It seems like the basic technique of git-rebase could be applied here.

Even if the archive is already public, I suppose it might occasionally be useful to be able to (say) split the archive by subtrees, and simply have everyone cut over.

Mike
Next: Junio C Hamano
Message 1 of 5 in “suggested feature: completely expunge a file (or just a delta) a la rebase”
  1. Mike ColemanApr 26, 2007
  2. Junio C HamanoApr 26, 2007
  3. Mike ColemanApr 26, 2007
  4. Johannes SchindelinApr 26, 2007
  5. Mike ColemanMay 3, 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.