radicle: add tags fetch refspec
Add a fetch refspec to fetch tags from a Radicle remote. The
--no-tag option is also included. This is to ensure that it is easy
to collaborate by having tags placed in the remote namespace of
another peer. However, if the namespace is the default rad remote,
then tags are expected to be allowed – this is to pave way for the
feature of canonical tags.
In the tests, the --tags option is removed – and is generally
recommended that it is not used. This is to ensure that it does not
override the --no-tag option.
4 files changed
+41
-8
6763bf31
→
46c2637f
modified radicle-cli/examples/git/git-tag.md
@@ -11,12 +11,26 @@ $ git tag v1.0 -a -m "Release v1.0"
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -28,13 +42,13 @@ $ rad remote add z6MknSLrJoTcukLrE435hVNQT4JUhbvWLX4kUzqkEStBU8Vi --name alice
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
| - | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
@@ -64,7 +78,7 @@ $ rad sync -f
|
|
|
|
|
|
| - | |
| + | |
|
|
| - | |
| + | |
|
modified radicle-cli/examples/rad-checkout-repo-config-linux.md
@@ -16,6 +16,7 @@ $ cat .git/config
|
|
|
|
|
|
| + | |
|
|
|
|
|
modified radicle-cli/examples/rad-checkout-repo-config-macos.md
@@ -18,6 +18,7 @@ $ cat .git/config
|
|
|
|
|
|
| + | |
|
|
|
|
|
modified radicle/src/git.rs
@@ -11,6 +11,7 @@ use once_cell::sync::Lazy;
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -532,7 +533,9 @@ pub fn configure_repository(repo: &git2::Repository) -> Result<(), git2::Error>
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -543,6 +546,20 @@ pub fn configure_remote<'r>(
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|