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 ```
14 lines
280 B
Diff
14 lines
280 B
Diff
diff --git a/slcp.c b/slcp.c
|
|
index 7f12b08..e93c1fd 100644
|
|
--- a/slcp.c
|
|
+++ b/slcp.c
|
|
@@ -106,7 +106,7 @@ int main(int argc, char* argv[])
|
|
{
|
|
git_repo = NULL;
|
|
}
|
|
- git_buf_free(&tmpgitdb);
|
|
+ git_buf_dispose(&tmpgitdb);
|
|
|
|
/* prepare some git information */
|
|
if(git_repo) {
|
|
|