git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* suggested feature: completely expunge a file (or just a delta) a la rebase
@ 2007-04-26  5:48 Mike Coleman
  2007-04-26  5:57 ` Junio C Hamano
  0 siblings, 1 reply; 5+ messages in thread
From: Mike Coleman @ 2007-04-26  5:48 UTC (permalink / raw
  To: git

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: suggested feature: completely expunge a file (or just a delta) a la rebase
  2007-04-26  5:48 suggested feature: completely expunge a file (or just a delta) a la rebase Mike Coleman
@ 2007-04-26  5:57 ` Junio C Hamano
  2007-04-26 14:50   ` Mike Coleman
  0 siblings, 1 reply; 5+ messages in thread
From: Junio C Hamano @ 2007-04-26  5:57 UTC (permalink / raw
  To: Mike Coleman; +Cc: git

"Mike Coleman" <tutufan@gmail.com> writes:

> Here's an idea for a git feature.  (Or perhaps this is already
> possible and I just don't see it.)
> ...
> 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.

There have been talks about polishing cg-rewritehist into a
shape suitable for inclusion in core git.git, now Cogito is not
actively developed anymore.

I think the first thing to fix is its name "rewritehist", which
may technically be correct, feels a bit too ugly ;-)

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: suggested feature: completely expunge a file (or just a delta) a la rebase
  2007-04-26  5:57 ` Junio C Hamano
@ 2007-04-26 14:50   ` Mike Coleman
  2007-04-26 15:17     ` Johannes Schindelin
  0 siblings, 1 reply; 5+ messages in thread
From: Mike Coleman @ 2007-04-26 14:50 UTC (permalink / raw
  To: Junio C Hamano; +Cc: git

On 4/26/07, Junio C Hamano <junkio@cox.net> wrote:
> There have been talks about polishing cg-rewritehist into a
> shape suitable for inclusion in core git.git, now Cogito is not
> actively developed anymore.

Ah, that looks like it'd fit the bill.  I may see if it'll still work
for my simple case.  Thanks for the pointer.

> I think the first thing to fix is its name "rewritehist", which
> may technically be correct, feels a bit too ugly ;-)

Naming is very important.  I seem to recall hearing (from PE) that one
of the early Unix guys was later asked if there was anything they'd
change in hindsight.  Their response: they'd spell "creat" with an
'e'.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: suggested feature: completely expunge a file (or just a delta) a la rebase
  2007-04-26 14:50   ` Mike Coleman
@ 2007-04-26 15:17     ` Johannes Schindelin
  2007-05-03 16:24       ` Mike Coleman
  0 siblings, 1 reply; 5+ messages in thread
From: Johannes Schindelin @ 2007-04-26 15:17 UTC (permalink / raw
  To: Mike Coleman; +Cc: Junio C Hamano, git

Hi,

On Thu, 26 Apr 2007, Mike Coleman wrote:

> On 4/26/07, Junio C Hamano <junkio@cox.net> wrote:
> > There have been talks about polishing cg-rewritehist into a
> > shape suitable for inclusion in core git.git, now Cogito is not
> > actively developed anymore.
> 
> Ah, that looks like it'd fit the bill.  I may see if it'll still work
> for my simple case.  Thanks for the pointer.
> 
> > I think the first thing to fix is its name "rewritehist", which
> > may technically be correct, feels a bit too ugly ;-)
> 
> Naming is very important.

Maybe git-rewrite-commits?

> I seem to recall hearing (from PE) that one of the early Unix guys was 
> later asked if there was anything they'd change in hindsight.  Their 
> response: they'd spell "creat" with an 'e'.

In related news: there is really no question that bike sheds should be 
painted red. Really.

Ciao,
Dscho

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: suggested feature: completely expunge a file (or just a delta) a la rebase
  2007-04-26 15:17     ` Johannes Schindelin
@ 2007-05-03 16:24       ` Mike Coleman
  0 siblings, 0 replies; 5+ messages in thread
From: Mike Coleman @ 2007-05-03 16:24 UTC (permalink / raw
  To: Johannes Schindelin; +Cc: Junio C Hamano, git

I have no idea why bike sheds should be painted red (though this does
sound very vaguely familiar).  I did get a chance to try out
cg-admin-rewritehist last night, and it worked like a charm.  Even got
rid of my graft point (my project has previously lived in RCS, CVS,
and Subversion).

Anyway, it'd definitely be useful, I think, especially as a means to
unroll newby mistakes such as mine.

Mike


On 4/26/07, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
> Hi,
>
> On Thu, 26 Apr 2007, Mike Coleman wrote:
>
> > On 4/26/07, Junio C Hamano <junkio@cox.net> wrote:
> > > There have been talks about polishing cg-rewritehist into a
> > > shape suitable for inclusion in core git.git, now Cogito is not
> > > actively developed anymore.
> >
> > Ah, that looks like it'd fit the bill.  I may see if it'll still work
> > for my simple case.  Thanks for the pointer.
> >
> > > I think the first thing to fix is its name "rewritehist", which
> > > may technically be correct, feels a bit too ugly ;-)
> >
> > Naming is very important.
>
> Maybe git-rewrite-commits?
>
> > I seem to recall hearing (from PE) that one of the early Unix guys was
> > later asked if there was anything they'd change in hindsight.  Their
> > response: they'd spell "creat" with an 'e'.
>
> In related news: there is really no question that bike sheds should be
> painted red. Really.
>
> Ciao,
> Dscho
>
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-05-03 16:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-26  5:48 suggested feature: completely expunge a file (or just a delta) a la rebase Mike Coleman
2007-04-26  5:57 ` Junio C Hamano
2007-04-26 14:50   ` Mike Coleman
2007-04-26 15:17     ` Johannes Schindelin
2007-05-03 16:24       ` Mike Coleman

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).