2 3d1b16d1 2023-07-08 jrick * Copyright (c) 2018, 2019, 2020 Stefan Sperling <stsp@openbsd.org>
3 3d1b16d1 2023-07-08 jrick * Copyright (c) 2023 Josh Rickmar <jrick@zettaport.com>
5 3d1b16d1 2023-07-08 jrick * Permission to use, copy, modify, and distribute this software for any
6 3d1b16d1 2023-07-08 jrick * purpose with or without fee is hereby granted, provided that the above
7 3d1b16d1 2023-07-08 jrick * copyright notice and this permission notice appear in all copies.
9 3d1b16d1 2023-07-08 jrick * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 3d1b16d1 2023-07-08 jrick * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 3d1b16d1 2023-07-08 jrick * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 3d1b16d1 2023-07-08 jrick * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 3d1b16d1 2023-07-08 jrick * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 3d1b16d1 2023-07-08 jrick * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15 3d1b16d1 2023-07-08 jrick * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
19 3d1b16d1 2023-07-08 jrick * Create a new commit from changes in the work tree.
20 3d1b16d1 2023-07-08 jrick * Return the ID of the newly created commit.
21 3d1b16d1 2023-07-08 jrick * The worktree's base commit will be set to this new commit.
22 3d1b16d1 2023-07-08 jrick * Files unaffected by this commit operation will retain their
23 3d1b16d1 2023-07-08 jrick * current base commit.
24 3d1b16d1 2023-07-08 jrick * An author and a non-empty log message must be specified.
25 3d1b16d1 2023-07-08 jrick * The name of the committer is optional (may be NULL).
26 3d1b16d1 2023-07-08 jrick * If a path to be committed contains a symlink which points outside
27 3d1b16d1 2023-07-08 jrick * of the path space under version control, raise an error unless
28 3d1b16d1 2023-07-08 jrick * committing of such paths is being forced by the caller.
30 3d1b16d1 2023-07-08 jrick const struct got_error *got_worktree_cvg_commit(struct got_object_id **,
31 3d1b16d1 2023-07-08 jrick struct got_worktree *, struct got_pathlist_head *, const char *,
32 3d1b16d1 2023-07-08 jrick const char *, int, int, int, got_worktree_commit_msg_cb, void *,
33 3d1b16d1 2023-07-08 jrick got_worktree_status_cb, void *, const char *, const char *, const char *,
34 3d1b16d1 2023-07-08 jrick const char *, int, const struct got_remote_repo *, got_cancel_cb,
35 3d1b16d1 2023-07-08 jrick struct got_repository *);
38 3d1b16d1 2023-07-08 jrick * Get the reference name for a temporary commit to be trivially rebased
39 3d1b16d1 2023-07-08 jrick * over a remote branch.
41 3d1b16d1 2023-07-08 jrick const struct got_error *got_worktree_cvg_get_commit_ref_name(char **,
42 3d1b16d1 2023-07-08 jrick struct got_worktree *);