4b97cd2fb4
```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.-][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.-][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
21 lines
568 B
Diff
21 lines
568 B
Diff
From 543101999ad0544e4a427afb5fbf993a55f820e1 Mon Sep 17 00:00:00 2001
|
|
From: Duncaen <mail@duncano.de>
|
|
Date: Tue, 28 Jul 2015 22:30:22 +0200
|
|
Subject: [PATCH] fix libgit initialization
|
|
|
|
---
|
|
slcp.c | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git slcp.c slcp.c
|
|
index 2e9f9f4..7f12b08 100644
|
|
--- a/slcp.c
|
|
+++ b/slcp.c
|
|
@@ -100,6 +100,7 @@ int main(int argc, char* argv[])
|
|
if(argc > 1) termwidth = atoi(argv[1]);
|
|
|
|
/* init git repo */
|
|
+ git_libgit2_init();
|
|
if(!git_repository_discover(&tmpgitdb, ".", 0, NULL)
|
|
&& git_repository_open(&git_repo, tmpgitdb.ptr))
|
|
{
|