Skip to content

Commit

Permalink
Renamed treebundel-prefix to treebundel-branch-prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
purplg committed Jan 30, 2024
1 parent 20f7a54 commit 3bab0e2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.org
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ URL to =~/workspaces/.bare/<repo-name>.git=, then create and open a worktree for
3. Select =[ clone ]=.
4. Enter the URL to clone for the repository to be added to the workspace.
5. Specify the name of the branch to checkout. By default, it'll pre-fill with
<treebundel-prefix>/<workspace-name>. You can also select an existing branch.
<treebundel-branch-prefix>/<workspace-name>. You can also select an existing branch.
6. Specify the project name which will be the name of the worktree is created in.

You should then be prompted with your ~project-switch-project~ prompt to begin editing.
Expand Down Expand Up @@ -131,7 +131,7 @@ project in your current workspace or ~treebundel-open~ to open a project in a di
This is the directory that bare repository get cloned to. The intent is for
this to be mostly transparent, hence the =.= prefix to make it hidden by default.

- treebundel-prefix :: *Default*: =“feature/”=
- treebundel-branch-prefix :: *Default*: =“feature/”=

A string used to generate a default branch name created with treebundel. By default, it's
=feature/= such that when you add a new project to a workspace, the new branch is name
Expand Down
8 changes: 4 additions & 4 deletions treebundel.el
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@

;;;; Configuration:

;; `treebundel-prefix'
;; `treebundel-branch-prefix'
;; Default: 'feature/'
;;
;; This is probably the most subjective variable you'd want to customize. With
Expand Down Expand Up @@ -130,7 +130,7 @@
:group 'convenience
:prefix "treebundel-")

(defcustom treebundel-prefix "feature/"
(defcustom treebundel-branch-prefix "feature/"
"The string prefix before every new project branch."
:group 'treebundel
:type 'string)
Expand Down Expand Up @@ -480,7 +480,7 @@ If FILE-PATH is non-nil, use the current buffer."
;; Branches
(defun treebundel--branch-name (workspace)
"Generate a branch name for WORKSPACE."
(concat treebundel-prefix workspace))
(concat treebundel-branch-prefix workspace))

(defun treebundel--branch-default (repo-path)
"Return the default branch at REPO-PATH.
Expand Down Expand Up @@ -666,7 +666,7 @@ respective projects' bare repository located at `treebundel-bare-dir'."
(defun treebundel-add-project (workspace bare project project-branch)
"Add a project to a workspace.
This will create a worktree in WORKSPACE with a branch named
after the workspace with `treebundel-prefix' prefixed.
after the workspace with `treebundel-branch-prefix' prefixed.
WORKSPACE is the name of the workspace where the worktree will be
created.
Expand Down

0 comments on commit 3bab0e2

Please sign in to comment.