diff options
author | Vincent Ambo <mail@tazj.in> | 2021-09-21T10·03+0300 |
---|---|---|
committer | Vincent Ambo <mail@tazj.in> | 2021-09-21T11·29+0300 |
commit | 43b1791ec601732ac31195df96781a848360a9ac (patch) | |
tree | daae8d638343295d2f1f7da955e556ef4c958864 /third_party/git/tmp-objdir.h | |
parent | 2d8e7dc9d9c38127ec4ebd13aee8e8f586a43318 (diff) |
chore(3p/git): Unvendor git and track patches instead r/2903
This was vendored a long time ago under the expectation that keeping it in sync with cgit would be easier this way, but it has proven not to be a big issue. On the other hand, a vendored copy of git is an annoying maintenance burden. It is much easier to rebase the single (dottime) patch that we have. This removes the vendored copy of git and instead passes the git source code to cgit via `pkgs.srcOnly`, which includes the applied patch so that cgit can continue rendering dottime. Change-Id: If31f62dea7ce688fd1b9050204e9378019775f2b
Diffstat (limited to 'third_party/git/tmp-objdir.h')
-rw-r--r-- | third_party/git/tmp-objdir.h | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/third_party/git/tmp-objdir.h b/third_party/git/tmp-objdir.h deleted file mode 100644 index b1e45b4c75d2..000000000000 --- a/third_party/git/tmp-objdir.h +++ /dev/null @@ -1,54 +0,0 @@ -#ifndef TMP_OBJDIR_H -#define TMP_OBJDIR_H - -/* - * This API allows you to create a temporary object directory, advertise it to - * sub-processes via GIT_OBJECT_DIRECTORY and GIT_ALTERNATE_OBJECT_DIRECTORIES, - * and then either migrate its object into the main object directory, or remove - * it. The library handles unexpected signal/exit death by cleaning up the - * temporary directory. - * - * Example: - * - * struct tmp_objdir *t = tmp_objdir_create(); - * if (!run_command_v_opt_cd_env(cmd, 0, NULL, tmp_objdir_env(t)) && - * !tmp_objdir_migrate(t)) - * printf("success!\n"); - * else - * die("failed...tmp_objdir will clean up for us"); - * - */ - -struct tmp_objdir; - -/* - * Create a new temporary object directory; returns NULL on failure. - */ -struct tmp_objdir *tmp_objdir_create(void); - -/* - * Return a list of environment strings, suitable for use with - * child_process.env, that can be passed to child programs to make use of the - * temporary object directory. - */ -const char **tmp_objdir_env(const struct tmp_objdir *); - -/* - * Finalize a temporary object directory by migrating its objects into the main - * object database, removing the temporary directory, and freeing any - * associated resources. - */ -int tmp_objdir_migrate(struct tmp_objdir *); - -/* - * Destroy a temporary object directory, discarding any objects it contains. - */ -int tmp_objdir_destroy(struct tmp_objdir *); - -/* - * Add the temporary object directory as an alternate object store in the - * current process. - */ -void tmp_objdir_add_as_alternate(const struct tmp_objdir *); - -#endif /* TMP_OBJDIR_H */ |