Re: [PATCH v2 1/2] doc: merge-tree: provide a commit message
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Oct 9, 2024, 17:38 UTC
- Message-ID
- <xmqq5xq1uqfi.fsf@gitster.g>
- In-Reply-To
- <e339f796-bb9c-439f-a24c-0c5e79257379@app.fastmail.com>
"Kristoffer Haugsbakk" <kristofferhaugsbakk@fastmail.com> writes:
Show 10 quoted lines
>>> + NEWCOMMIT=$(git commit-tree $NEWTREE -F $FILE_WITH_COMMIT_MESSAGE \ >>> + -p $BRANCH1 -p $BRANCH2) >>> git update-ref $BRANCH1 $NEWCOMMIT >> >> The shell should know, after seeing $FILE_WITH_COMMIT_MESSAGE and >> encountering the end of line, that you haven't completed telling >> what you started telling it. Do you need " \" at the end of the >> line? > > I tried that and got an error: `-p: not found`.
Thanks for trying. Sorry, but I think I got confused by trying it with two "echo" (one per line). The newline still acts as a inter-command separator.
Show 9 quoted lines
>> E.g., >> >> vi message.txt >> NEWCOMMIT=$(git comimt-tree $NEWTREE -F message.txt >> -p $BRANCH1 -p $BRANCH2) >> >> or something like that? > > I’ll do that.