libxfs-apply: use git am instead of patch
authorChristoph Hellwig <hch@lst.de>
Mon, 11 May 2020 20:48:55 +0000 (16:48 -0400)
committerEric Sandeen <sandeen@sandeen.net>
Mon, 11 May 2020 20:48:55 +0000 (16:48 -0400)
If neither guilt or stgit are used default to git am instead of patch
so that all the commit information is properly propagated.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Eric Sandeen <sandeen@sandeen.net>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
tools/libxfs-apply

index deb9c2258ab88dc933cc4f923ece4e2e32f986f3..3258272d6189de17cc95593d4f5604894d65ed5d 100755 (executable)
@@ -395,8 +395,8 @@ apply_patch()
                        fi
                fi
        else
-               echo "Applying with patch utility:"
-               patch -p1 < $_new_patch.2
+               echo "Applying with git am:"
+               git am -s $_new_patch.2
                echo "Patch was applied in $REPO; check for rejects, etc"
        fi