diff options
author | Kyle Meyer <kyle@kyleam.com> | 2021-12-29 18:50:23 -0500 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2022-02-05 12:33:31 -0500 |
commit | f55a49ca404e751c9a6f8f9d08e2251cb5d503df (patch) | |
tree | 43fd57cb5db0113e3c652a02d3d10c4750b5e90e | |
parent | afa9e05e5bb42d88b0c5cf79bdcb8fbd14fdd800 (diff) | |
download | piem-f55a49ca404e751c9a6f8f9d08e2251cb5d503df.tar.gz |
am: Give better name to default piem-am-read-worktree-function value
piem-am-read-worktree isn't a good name because it doesn't provide any
information to distinguish this function from any other function used
for piem-am-read-worktree-function.
Message-Id: <20211229235036.372313-2-kyle@kyleam.com>
-rw-r--r-- | piem.el | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -192,7 +192,8 @@ the following information about the patch series: "Whether to create a dedicated worktree for applying patches." :type 'boolean) -(defcustom piem-am-read-worktree-function #'piem-am-read-worktree +(defcustom piem-am-read-worktree-function + #'piem-am-read-worktree-sibling-named-by-branch "Function that reads a to-be-created worktree from the user. This function is called with two arguments, the directory of the code repository that the worktree will be created from and the @@ -890,7 +891,7 @@ in `piem-default-branch-function'." (defvar piem-am-args (list "--scissors" "--3way")) -(defun piem-am-read-worktree (coderepo branch) +(defun piem-am-read-worktree-sibling-named-by-branch (coderepo branch) "Read a worktree to create for applying patches. This function is intended to be used as a value of `piem-am-read-worktree-function'. The worktree directory is |