[webkit-qt] Fwd: Problem generating diff

Dawit A adawit at kde.org
Fri Aug 12 05:38:39 PDT 2011


On Fri, Aug 12, 2011 at 2:44 AM, Kalle Vahlman <kalle.vahlman at gmail.com> wrote:
> 2011/8/12 Lindsay Mathieson <lindsay.mathieson at gmail.com>
>>
>> I havea  unpushed commit on a webkit master (for inline spelling) and
>> I can't seem to generate a patch for it. Have tried "git format-patch
>> --stdout master ", "git diff master" and "git diff". None of them
>> produce any out put.
>>
>> git status
>> # On branch master
>> # Your branch is ahead of 'origin/master' by 1 commit.
>> #
>> nothing to commit (working directory clean)
>>
>>
>> What to do?
>
> Try:
>   git format-patch HEAD^
> ("make a patch of the changes introduced by commit preceding current top
> commit").
>
> 'git diff' only shows unstaged/uncommitted changes, that's why it has no
> output.

You can also generate the diff by doing

git diff origin/master..

OR if you have multiple commits and only want to generate the diff of
a single change

git log origin/master..
git show <reversion-number>


Regards,
Dawit A.


More information about the webkit-qt mailing list