[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: no patch applies
From: |
David Craven |
Subject: |
Re: no patch applies |
Date: |
Sat, 6 Aug 2016 19:12:01 +0200 |
>From the git docs:
> This command applies the patch but does not create a commit.
> Use git-am[1] to create commits from patches generated by
> git-format-patch[1] and/or received by email.
When you do:
git diff > a-patch.patch
git reset --hard
git apply a-patch.patch
the a-patch.patch file doesn't contain a header like this one:
```
>From 7ae32701d13295eb380455af885eaf466303368c Mon Sep 17 00:00:00 2001
From: Hartmut Goebel <address@hidden>
Date: Sun, 12 Jun 2016 21:15:00 +0200
Subject: [PATCH] kde porting aids
```
and git am fails when it's applied. The same is true for git format-patch
and git apply.
- Re: no patch applies,
David Craven <=