git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git commit-tree man page
@ 2012-10-24 12:45 Angelo Borsotti
  2012-10-24 13:59 ` Andreas Schwab
  0 siblings, 1 reply; 2+ messages in thread
From: Angelo Borsotti @ 2012-10-24 12:45 UTC (permalink / raw)
  To: git

Hello,

the man page of git commit-tree SYNOPSIS is:

    git commit-tree <tree> [(-p <parent>)...] < changelog
    git commit-tree [(-p <parent>)...] [(-m <message>)...] [(-F
<file>)...] <tree>

The second form is incorrect: the <tree> must be specified before the options.
E.g.

$ git commit-tree -m B 88f7dbd47
fatal: Not a valid object name -m

$ git commit-tree 88f7dbd47 -m B
2f7619ed932787a128a84c4809d7b72ef38257a5

-Angelo Borsotti

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

* Re: git commit-tree man page
  2012-10-24 12:45 git commit-tree man page Angelo Borsotti
@ 2012-10-24 13:59 ` Andreas Schwab
  0 siblings, 0 replies; 2+ messages in thread
From: Andreas Schwab @ 2012-10-24 13:59 UTC (permalink / raw)
  To: Angelo Borsotti; +Cc: git

Angelo Borsotti <angelo.borsotti@gmail.com> writes:

> Hello,
>
> the man page of git commit-tree SYNOPSIS is:
>
>     git commit-tree <tree> [(-p <parent>)...] < changelog
>     git commit-tree [(-p <parent>)...] [(-m <message>)...] [(-F
> <file>)...] <tree>
>
> The second form is incorrect: the <tree> must be specified before the options.
> E.g.
>
> $ git commit-tree -m B 88f7dbd47
> fatal: Not a valid object name -m

This has been fixed in 1.7.11.4:

 * "git commit-tree" learned a more natural "-p <parent> <tree>" order
   of arguments long time ago, but recently forgot it by mistake.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

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

end of thread, other threads:[~2012-10-24 14:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-24 12:45 git commit-tree man page Angelo Borsotti
2012-10-24 13:59 ` Andreas Schwab

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 NNTP newsgroup(s).