Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Curious result from "git" completion



Thanks for the patch for this.  Briefly switching to the other topic in
this thread (if this goes on much longer we should edit the Subject):

On Apr 4,  9:33pm, Nikolai Weibull wrote:
}
} > I was attempting completion in hopes of answering the question, "What's
} > the simple git equivalent of 'cvs export'?"
} 
} What are you trying to achieve?  A simple cp -a on the main directory
} followed by a rm -rf $DIR/.git would create a copy without any Git
} information.

That's what I was after.  I just assumed that since git seems to have a
sub-command for just about everything, there was probably already one
that did this in [what would appear to the user as] a single step, but
that I hadn't found it yet.

On Apr 4,  9:57pm, Frank Terbeck wrote:
}
} This would be "git archive".

Well, almost.  I still have to e.g. pipe it to tar.  But these are both
serviceable answers.


Background:  I have my own CVS repository with a slightly customized zsh
module.  It has stuff that's it's not really appropriate to push up to
sourceforge, e.g., Makefile changes to be able to compile the docs under
obsolete versions of texinfo, and the like.  I use it to pull sources
onto some hosts where git is not installed and it's a hassle to arrange
for it to be.  I have a script that previously sync'd CVS at sourceforge
into a local sandbox based on my repository, which I'm updating to base
the remote repository on git.  The sync depends on being able to do a
multi-way diff against a clean tree that has no version control clutter,
which until the cutover I would generate with "cvs export".

-- 
Barton E. Schaefer



Messages sorted by: Reverse Date, Date, Thread, Author