-
Notifications
You must be signed in to change notification settings - Fork 151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve local-repo docs #906
base: develop
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1890,10 +1890,12 @@ meaning in a recipe (unknown keywords are ignored but preserved): | |
|
||
* `:local-repo` | ||
|
||
This is the name of the local repository that is used for the | ||
package. If a local repository by that name does not exist when you | ||
invoke `straight-use-package`, one will be cloned according to the | ||
package's [version-control settings][#user/recipes/vc-backends]. | ||
This is the name of the local repository (either a git directory on | ||
the local file system or a plain directory on the local file system) | ||
that is used for the package. If a local repository by that name | ||
does not exist when you invoke `straight-use-package`, one will be | ||
cloned according to the package's [version-control | ||
settings][#user/recipes/vc-backends]. | ||
|
||
Multiple packages can use the same local repository. If so, then a | ||
change to the local repository will cause both packages to be | ||
|
@@ -1905,6 +1907,13 @@ meaning in a recipe (unknown keywords are ignored but preserved): | |
settings][#user/recipes/vc-backends], or as a last resort the | ||
package name. | ||
|
||
For example: | ||
|
||
```emacs-lisp | ||
(straight-use-package | ||
'( example :local-repo "/home/user/repos/example.el" )) | ||
Comment on lines
+1913
to
+1914
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The text you added above mentions that Does this example work if you run it? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah I intended it to be a directory named |
||
``` | ||
|
||
* `:files` | ||
|
||
This is a list specifying which files in a package's local | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure about the phrases "git directory" and "plain directory" here.
A "git directory", if I understand your intention, is just a repository.
A "plain directory" is just a directory. Those terms would probably be better. Keep in mind that other version control back ends may be implemented, so it's best to avoid referring to git directly when it's unnecessary.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I got tripped up initially because repository can mean many different things in computer science so when I was initially reading through the list of options I wasn't sure what
repository
meant in this context.Maybe this would be more straightforward: "This is the path to a local vcs repository (git by default)"
Although since with
:type nil
it doesn't have to actually be a vcs repository so maybe something could be added to that effect.