# git commit-tree man page

2 messages from 2012-10-24 to 2012-10-24. Participants: Angelo Borsotti, Andreas Schwab.
Thread: https://gitlist.dev/t/31931

## Angelo Borsotti, 2012-10-24 12:45

Subject: git commit-tree man page
Message-ID: <CAB9Jk9BMndLj_nHW=EQbSS96Gp5+5NA3Vyb0r-EfVd+OPyQhnA@mail.gmail.com>
URL: https://gitlist.dev/e/CAB9Jk9BMndLj_nHW%3DEQbSS96Gp5%2B5NA3Vyb0r-EfVd%2BOPyQhnA%40mail.gmail.com

```
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

```

## Andreas Schwab, 2012-10-24 13:59

Subject: Re: git commit-tree man page
Message-ID: <m28vaw7yya.fsf@igel.home>
URL: https://gitlist.dev/e/m28vaw7yya.fsf%40igel.home
In-Reply-To: <CAB9Jk9BMndLj_nHW=EQbSS96Gp5+5NA3Vyb0r-EfVd+OPyQhnA@mail.gmail.com>

```
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."

```
