just playing with tangled
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

cli: git: document about default fetch/push --remote

+12
+3
cli/src/commands/git/fetch.rs
··· 47 47 branch: Vec<StringPattern>, 48 48 /// The remote to fetch from (only named remotes are supported, can be 49 49 /// repeated) 50 + /// 51 + /// This defaults to the `git.fetch` setting. If that is not configured, and 52 + /// if there are multiple remotes, the remote named "origin" will be used. 50 53 #[arg( 51 54 long = "remote", 52 55 value_name = "REMOTE",
+5
cli/src/commands/git/push.rs
··· 78 78 #[command(group(ArgGroup::new("what").args(&["all", "deleted", "tracked"]).conflicts_with("specific")))] 79 79 pub struct GitPushArgs { 80 80 /// The remote to push to (only named remotes are supported) 81 + /// 82 + /// This defaults to the `git.push` setting. If that is not configured, and 83 + /// if there are multiple remotes, the remote named "origin" will be used. 84 + /// Unlike in Git, the default remote is not derived from the tracked remote 85 + /// bookmarks. 81 86 #[arg(long, add = ArgValueCandidates::new(complete::git_remotes))] 82 87 remote: Option<String>, 83 88 /// Push only this bookmark, or bookmarks matching a pattern (can be
+4
cli/tests/cli-reference@.md.snap
··· 1099 1099 1100 1100 Default value: `glob:*` 1101 1101 * `--remote <REMOTE>` — The remote to fetch from (only named remotes are supported, can be repeated) 1102 + 1103 + This defaults to the `git.fetch` setting. If that is not configured, and if there are multiple remotes, the remote named "origin" will be used. 1102 1104 * `--all-remotes` — Fetch from all remotes 1103 1105 1104 1106 ··· 1159 1161 ###### **Options:** 1160 1162 1161 1163 * `--remote <REMOTE>` — The remote to push to (only named remotes are supported) 1164 + 1165 + This defaults to the `git.push` setting. If that is not configured, and if there are multiple remotes, the remote named "origin" will be used. Unlike in Git, the default remote is not derived from the tracked remote bookmarks. 1162 1166 * `-b`, `--bookmark <BOOKMARK>` — Push only this bookmark, or bookmarks matching a pattern (can be repeated) 1163 1167 1164 1168 By default, the specified name matches exactly. Use `glob:` prefix to select bookmarks by wildcard pattern. For details, see https://martinvonz.github.io/jj/latest/revsets#string-patterns.