1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-31 14:24:25 +03:00

fix: fix ambiguous branch name

test: add an integration test for checkout branch by name

fix: fix full ref name of detached head

refactor: refactor current branch loader

chore: use field name explicitly
This commit is contained in:
Ryooooooga
2022-10-16 21:31:42 +09:00
committed by Jesse Duffield
parent b33ec5a050
commit 52a2e4c1dc
39 changed files with 150 additions and 43 deletions

View File

@ -0,0 +1 @@
ref: refs/heads/new-branch

View File

@ -0,0 +1,12 @@
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
ignorecase = true
precomposeunicode = true
[user]
email = CI@example.com
name = CI
[commit]
gpgSign = false

View File

@ -0,0 +1 @@
Unnamed repository; edit this file 'description' to name the repository.

View File

@ -0,0 +1,7 @@
0000000000000000000000000000000000000000 95efd4ea6ed74b904cd8eeeaa6245ec462372f67 CI <CI@example.com> 1665924398 +0900 commit (initial): commit 01
95efd4ea6ed74b904cd8eeeaa6245ec462372f67 cfc66e0e89b1dc11a927cc453dbee025ff03cf83 CI <CI@example.com> 1665924398 +0900 commit: commit 02
cfc66e0e89b1dc11a927cc453dbee025ff03cf83 6d69ac71e12a83769fca195d0a714435e1f4661a CI <CI@example.com> 1665924398 +0900 commit: commit 03
6d69ac71e12a83769fca195d0a714435e1f4661a 6d69ac71e12a83769fca195d0a714435e1f4661a CI <CI@example.com> 1665924398 +0900 checkout: moving from master to @
6d69ac71e12a83769fca195d0a714435e1f4661a 6d69ac71e12a83769fca195d0a714435e1f4661a CI <CI@example.com> 1665924398 +0900 checkout: moving from @ to master
6d69ac71e12a83769fca195d0a714435e1f4661a 18565748bda3ca01a67a92f340705af5a11384ae CI <CI@example.com> 1665924398 +0900 commit: blah
18565748bda3ca01a67a92f340705af5a11384ae 6d69ac71e12a83769fca195d0a714435e1f4661a CI <CI@example.com> 1665924403 +0900 checkout: moving from master to new-branch

View File

@ -0,0 +1 @@
0000000000000000000000000000000000000000 6d69ac71e12a83769fca195d0a714435e1f4661a CI <CI@example.com> 1665924398 +0900 branch: Created from HEAD

View File

@ -0,0 +1,4 @@
0000000000000000000000000000000000000000 95efd4ea6ed74b904cd8eeeaa6245ec462372f67 CI <CI@example.com> 1665924398 +0900 commit (initial): commit 01
95efd4ea6ed74b904cd8eeeaa6245ec462372f67 cfc66e0e89b1dc11a927cc453dbee025ff03cf83 CI <CI@example.com> 1665924398 +0900 commit: commit 02
cfc66e0e89b1dc11a927cc453dbee025ff03cf83 6d69ac71e12a83769fca195d0a714435e1f4661a CI <CI@example.com> 1665924398 +0900 commit: commit 03
6d69ac71e12a83769fca195d0a714435e1f4661a 18565748bda3ca01a67a92f340705af5a11384ae CI <CI@example.com> 1665924398 +0900 commit: blah

View File

@ -0,0 +1 @@
0000000000000000000000000000000000000000 6d69ac71e12a83769fca195d0a714435e1f4661a CI <CI@example.com> 1665924403 +0900 branch: Created from refs/heads/@

View File

@ -0,0 +1,3 @@
x<01><>M
<EFBFBD>0@a<>9E<39><45>d<EFBFBD><33><CD80>U<EFBFBD>1I&ThL)<<3C>=<3D>ۏ<EFBFBD>x<EFBFBD><78><EFBFBD>.<2E>т%A
1۔<EFBFBD>p<EFBFBD>`<q<><71><08>C#<23>Y<10>v><3E>=4$<24>X<>nB<6E><42><EFBFBD>B1<<3C><>.T<><08><>3<EFBFBD>~<7E>y<EFBFBD><79>yyʗ۾<CA97>-<2D><>Ѐ<18>zGQ_

View File

@ -0,0 +1,3 @@
x<01><>=
1@a<><61>bzAf<41>gD<><44><EFBFBD><18>d<EFBFBD><64>q<EFBFBD>%<25><>w `<60><><EFBFBD>'K<><4B><01><>06U<36>X <0B><>Ė4WO<57>9'm<> ]Dݛ%<25><66>H<>5q<35>*D<><44>Y<EFBFBD>W<>*<2A><>:iə<69><1E>e<EFBFBD>i<EFBFBD><69>4<EFBFBD><34><EFBFBD><EFBFBD><EFBFBD>ԓ,<2C>
c`<60>'8"#<23><><EFBFBD>SC<53><43>?<0F><>;<3B>

View File

@ -0,0 +1,3 @@
x<01><>A
1 @Q<>=E<><45><EFBFBD><EFBFBD>4mAD<41><44><EFBFBD>H<EFBFBD><05> C<05><>,<<3C><><EFBFBD>[<5B><><EFBFBD><EFBFBD><18>Ʀ
b<EFBFBD>P<EFBFBD>8s<EFBFBD>-<2D><><EFBFBD>G<EFBFBD>X<EFBFBD><13>Er<45>H<EFBFBD>)<29>U6}

View File

@ -0,0 +1 @@
6d69ac71e12a83769fca195d0a714435e1f4661a

View File

@ -0,0 +1 @@
18565748bda3ca01a67a92f340705af5a11384ae

View File

@ -0,0 +1 @@
6d69ac71e12a83769fca195d0a714435e1f4661a

View File

@ -0,0 +1 @@
file01 content

View File

@ -0,0 +1 @@
file02 content

View File

@ -0,0 +1 @@
file03 content