File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -147,6 +147,13 @@ the latest commit on a branch named `next`:
147
147
regex = { git = " https://github.com/rust-lang/regex" , branch = " next" }
148
148
```
149
149
150
+ Anything that is not a branch or tag falls under ` rev ` . This can be a commit
151
+ hash like ` rev = "4c59b707" ` , or a named reference exposed by the remote
152
+ repository such as ` rev = "refs/pull/493/head" ` . What references are available
153
+ varies by where the repo is hosted; GitHub in particular exposes a reference to
154
+ the most recent commit of every pull request as shown, but other git hosts often
155
+ provide something equivalent, possibly under a different naming scheme.
156
+
150
157
Once a ` git ` dependency has been added, Cargo will lock that dependency to the
151
158
latest commit at the time. New commits will not be pulled down automatically
152
159
once the lock is in place. However, they can be pulled down manually with
You can’t perform that action at this time.
0 commit comments