1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-12-01 22:52:01 +02: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��M
�0@a�9E��d�3̀��U�1I&ThL)<�=�ۏ�x���.�т%A
1۔�p�`<q���C#�Y�v>�=4$�X�nB���B1<��.T���3�~�y��yyʗ۾�-��Ѐ�zGQ_

View File

@@ -0,0 +1,3 @@
x��=
1@a��bzAf�gD����d��q�%��w `���'K����06U�X ��Ė4WO�9'm� ]Dݛ%�f͛�H�5q�*D��Y�W�*��:iə��e�i��4�����ԓ,�
c`�'8"#���SC��?��;�

View File

@@ -0,0 +1,3 @@
x��A
1 @Q�=E����4mAD���H�� C��,<���[�����Ʀ
b�P�8s�-���G�X��Er�H�)�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