Anton Bulakh
791b821115
cmd: when a single remote is defined, default to it for git fetch/push
...
A simple quick implementation of what I've suggested on discord
2023-04-14 08:20:30 +03:00
Ilya Grigoriev
0e2579ee6a
Switch graph node to use ◉
for commit instead of ●
...
This follows up on 5c703aeb03
.
The only reason for this change is that, subjectively, the result looks better to me. I'm not sure why, but I couldn't get used to the old symbol in spite of its seeming reasonableness. It felt really bold and heavy.
If people agree, we can wait until we need to update the screenshots for some other reason before merging this. Sorry I didn't figure this out while the discussion about the referenced commit was going on.
I'm not 100% certain how many fonts support each symbol. Please try it out and let me know if it doesn't work for you.
Compare after:
![image](https://user-images.githubusercontent.com/4123047/229251383-563b889d-7233-42e2-a3c5-bf9368a4d1fd.png )
and before:
![image](https://user-images.githubusercontent.com/4123047/229251695-7fd0ff2c-2832-4262-ade5-5120288cccdf.png )
2023-04-02 23:15:37 -07:00
Martin von Zweigbergk
5c703aeb03
cli: replace o
as graph node by ●
when using unicode graph
...
@joyously found `o` confusing because it's a valid change id prefix. I
don't have much preference, but `●` seems fine. The "ascii",
"ascii-large", and "legacy" graph styles still use "o".
I didn't change `@` since it seems useful to have that match the
symbol used on the CLI. I don't think we want to have users do
something like `jj co ◎-`.
2023-03-12 23:21:05 -07:00
Samuel Tardieu
5ecdeed606
git: only consider references matching globs when fetching
2023-03-02 10:09:08 +01:00
Yuya Nishihara
66458a097e
templater: require infix ++ operator to concatenate expressions
...
This eliminates ambiguous parsing between "func()" and "expr ()".
I chose "++" as template concatenation operator in case we want to add
bit-wise negate operator. It's also easier to find/replace than "~".
2023-03-01 16:39:23 +09:00
Yuya Nishihara
6bbf4c6fcf
tests: extract log template function/variable for code readability
...
Also rewrites some lengthy templates. That's why the test output slightly
changed.
2023-03-01 16:39:23 +09:00
Samuel Tardieu
c5e41a99c3
git remote rename: rename git refs as well
2023-02-26 15:22:18 +01:00
Samuel Tardieu
b515d14f18
git_fetch: when removing a remote branch, remove git ref as well
2023-02-26 15:22:18 +01:00
Samuel Tardieu
1056cfa41a
test_git_fetch: make different remotes in test contain different commits
...
Using the same commits (and thus the same commit id) in multiple remotes
makes it harder to see what comes from where.
2023-02-24 20:29:03 +01:00
Ilya Grigoriev
30d03a66e6
cmd: --branch
option for git fetch
.
...
Thanks to @samueltardieu for noticing a subtle bug in the refspecs, providing
the fix, as well as the two `conflicting_branches` tests.
2023-02-21 18:33:40 -08:00
Ilya Grigoriev
cd8a18daf8
test_git_fetch.rs: Move some helper methods
2023-02-21 18:33:40 -08:00
Samuel Tardieu
c0c3f87574
git fetch: prune old branch names before adding new ones
2023-02-12 02:10:17 +01:00
Samuel Tardieu
b7b3314afe
git fetch: exhibit bug due to fetching references before pruning
2023-02-12 02:10:17 +01:00
Samuel Tardieu
af9471e65c
git fetch: accept several remotes
...
The "--remote" option can be repeated, and the "git.fetch" key
is now a list.
2023-02-03 16:04:37 +01:00
Samuel Tardieu
4550b9c481
git fetch: add tests
2023-02-03 16:04:37 +01:00