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

Re: [PATCH] fast-export: print usage when no options specified

From
Miklos Vajna <vmiklos@frugalware.org>
Date
Jan 6, 2009, 20:11 UTC
Message-ID
<20090106201126.GJ21154@genesis.frugalware.org>
In-Reply-To
<alpine.DEB.1.00.0901062023100.30769@pacific.mpi-cbg.de>
On Tue, Jan 06, 2009 at 08:28:59PM +0100, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
Show 8 quoted lines
> Maybe this should be part of the commit message?
> 
> -- snip --
> Some people find it surprising that fast-export does not output a usage 
> when called without parameters, as rev-list does.
> 
> This assumes that a user usually does not want to export HEAD by default.
> -- snap --
OK, if this is the only problem, I can resend it with this included. ;-)
Show 5 quoted lines
> However, I have to say that I would find exporting HEAD a rather sensible 
> default.
> 
> But I am not _that_ strongly opposed to the patch.  Just would like to 
> hear some opinions first.

According to man git, fast-export is not a plumbing, though I think most user won't type it manually multiple times, they'll write a script, that checks if there is something to convert, then run git fast-export | foo fast-import, so it's really like plumbing. That's why I found the rev-list-like behaviour more logical.

However, I think defaulting to HEAD is still better than the current situation, so if that's the consensus, I'm fine with that as well.

Previous: Johannes Schindelin
Message 4 of 4 in “git-fast-export bundle doc”
  1. jidanni@jidanni.orgJan 3, 2009
  2. fast-export: print usage when no options specifiedMiklos Vajna, Jan 3, 2009
  3. Johannes SchindelinJan 6, 2009
  4. Miklos VajnaJan 6, 2009

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.