githelper.git
/
githelper.pike
version
»
Context lines:
10
20
40
80
file
none
3
githelper.git/githelper.pike:100:
}); while( mystdout || mystderr ) Pike.DefaultBackend( 1.0 ); int exitcode = p->wait(); if (exitcode > max_exitcode) { werror(gotstderr); fail("git %{%O %}exited with code %d\n", args, exitcode); }
+
if (exitcode) return "";
return gotstdout; } string run_git(string ... args) { return run_git_ex(0, @args); } string get_staged_file(string filename, int|void allow_empty) {
githelper.git/githelper.pike:396:
GithelperPlugin plugin; private class PluginHandler { mixed resolv(string symbol, string file) { switch(symbol) { case "GithelperPlugin": return GithelperPlugin; case "get_git_dir": return get_git_dir; case "get_git_commondir": return get_git_commondir;
+
case "run_git": return run_git;
+
case "run_git_ex": return run_git_ex;
} return master()->resolv(symbol, file); } } private PluginHandler plugin_handler = PluginHandler(); protected void create() { if (!sizeof(plugin_name || "")) return;