summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2021-12-29 18:50:23 -0500
committerKyle Meyer <kyle@kyleam.com>2022-02-05 12:33:31 -0500
commitf55a49ca404e751c9a6f8f9d08e2251cb5d503df (patch)
tree43fd57cb5db0113e3c652a02d3d10c4750b5e90e
parentafa9e05e5bb42d88b0c5cf79bdcb8fbd14fdd800 (diff)
downloadpiem-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.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/piem.el b/piem.el
index b839942..9e5b062 100644
--- a/piem.el
+++ b/piem.el
@@ -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