1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-04-13 11:50:28 +02:00

migrate more tests

This commit is contained in:
Jesse Duffield 2023-02-22 21:57:32 +11:00
parent 22c10479d5
commit eabe7f462a
258 changed files with 380 additions and 548 deletions

View File

@ -32,8 +32,7 @@ func (self *PromptDriver) Type(value string) *PromptDriver {
}
func (self *PromptDriver) Clear() *PromptDriver {
// TODO: soft-code this
self.t.press("<c-u>")
self.t.press(ClearKey)
return self
}

View File

@ -0,0 +1,39 @@
package components
// TODO: soft-code this
const ClearKey = "<c-u>"
type SearchDriver struct {
t *TestDriver
}
func (self *SearchDriver) getViewDriver() *ViewDriver {
return self.t.Views().Search()
}
// asserts on the text initially present in the prompt
func (self *SearchDriver) InitialText(expected *matcher) *SearchDriver {
self.getViewDriver().Content(expected)
return self
}
func (self *SearchDriver) Type(value string) *SearchDriver {
self.t.typeContent(value)
return self
}
func (self *SearchDriver) Clear() *SearchDriver {
self.t.press(ClearKey)
return self
}
func (self *SearchDriver) Confirm() {
self.getViewDriver().PressEnter()
}
func (self *SearchDriver) Cancel() {
self.getViewDriver().PressEscape()
}

View File

@ -179,7 +179,7 @@ func (self *Shell) StashWithMessage(message string) *Shell {
}
func (self *Shell) SetConfig(key string, value string) *Shell {
self.RunCommand(fmt.Sprintf(`git config --local "%s" %s`, key, value))
self.RunCommand(fmt.Sprintf(`git config --local "%s" "%s"`, key, value))
return self
}

View File

@ -159,6 +159,19 @@ func (self *TestDriver) ExpectClipboard(matcher *matcher) {
})
}
func (self *TestDriver) ExpectSearch() *SearchDriver {
self.inSearch()
return &SearchDriver{t: self}
}
func (self *TestDriver) inSearch() {
self.assertWithRetries(func() (bool, string) {
currentView := self.gui.CurrentContext().GetView()
return currentView.Name() == "search", "Expected search prompt to be focused"
})
}
// for making assertions through git itself
func (self *TestDriver) Git() *Git {
return &Git{assertionHelper: self.assertionHelper, shell: self.shell}

View File

@ -127,3 +127,7 @@ func (self *Views) Suggestions() *ViewDriver {
func (self *Views) MergeConflicts() *ViewDriver {
return self.byName("mergeConflicts")
}
func (self *Views) Search() *ViewDriver {
return self.byName("search")
}

View File

@ -0,0 +1,36 @@
package branch
import (
"github.com/jesseduffield/lazygit/pkg/config"
. "github.com/jesseduffield/lazygit/pkg/integration/components"
)
var ResetUpstream = NewIntegrationTest(NewIntegrationTestArgs{
Description: "Reset the upstream of a branch",
ExtraCmdArgs: "",
Skip: false,
SetupConfig: func(config *config.AppConfig) {},
SetupRepo: func(shell *Shell) {
shell.EmptyCommit("one")
shell.CloneIntoRemote("origin")
shell.SetBranchUpstream("master", "origin/master")
},
Run: func(t *TestDriver, keys config.KeybindingConfig) {
t.Views().Branches().
Focus().
Press(keys.Universal.NextScreenMode). // we need to enlargen the window to see the upstream
Lines(
Contains("master").Contains("origin master").IsSelected(),
).
Press(keys.Branches.SetUpstream).
Tap(func() {
t.ExpectPopup().Menu().
Title(Equals("Set/unset upstream")).
Select(Contains("unset upstream of selected branch")).
Confirm()
}).
Lines(
Contains("master").DoesNotContain("origin master").IsSelected(),
)
},
})

View File

@ -0,0 +1,40 @@
package branch
import (
"github.com/jesseduffield/lazygit/pkg/config"
. "github.com/jesseduffield/lazygit/pkg/integration/components"
)
var SetUpstream = NewIntegrationTest(NewIntegrationTestArgs{
Description: "Set the upstream of a branch",
ExtraCmdArgs: "",
Skip: false,
SetupConfig: func(config *config.AppConfig) {},
SetupRepo: func(shell *Shell) {
shell.EmptyCommit("one")
shell.CloneIntoRemote("origin")
},
Run: func(t *TestDriver, keys config.KeybindingConfig) {
t.Views().Branches().
Focus().
Press(keys.Universal.NextScreenMode). // we need to enlargen the window to see the upstream
Lines(
Contains("master").DoesNotContain("origin master").IsSelected(),
).
Press(keys.Branches.SetUpstream).
Tap(func() {
t.ExpectPopup().Menu().
Title(Equals("Set/unset upstream")).
Select(Contains(" set upstream of selected branch")). // using leading space to disambiguate from the 'reset' option
Confirm()
t.ExpectPopup().Prompt().
Title(Equals("Enter upstream as '<remote> <branchname>'")).
SuggestionLines(Equals("origin master")).
ConfirmFirstSuggestion()
}).
Lines(
Contains("master").Contains("origin master").IsSelected(),
)
},
})

View File

@ -0,0 +1,39 @@
package commit
import (
"github.com/jesseduffield/lazygit/pkg/config"
. "github.com/jesseduffield/lazygit/pkg/integration/components"
)
var ResetAuthor = NewIntegrationTest(NewIntegrationTestArgs{
Description: "Reset author on a commit",
ExtraCmdArgs: "",
Skip: false,
SetupConfig: func(config *config.AppConfig) {},
SetupRepo: func(shell *Shell) {
shell.SetConfig("user.email", "Bill@example.com")
shell.SetConfig("user.name", "Bill Smith")
shell.EmptyCommit("one")
shell.SetConfig("user.email", "John@example.com")
shell.SetConfig("user.name", "John Smith")
},
Run: func(t *TestDriver, keys config.KeybindingConfig) {
t.Views().Commits().
Focus().
Lines(
Contains("BS").Contains("one").IsSelected(),
).
Press(keys.Commits.ResetCommitAuthor).
Tap(func() {
t.ExpectPopup().Menu().
Title(Equals("Amend commit attribute")).
Select(Contains("reset author")).
Confirm()
}).
Lines(
Contains("JS").Contains("one").IsSelected(),
)
},
})

View File

@ -0,0 +1,107 @@
package commit
import (
"github.com/jesseduffield/lazygit/pkg/config"
. "github.com/jesseduffield/lazygit/pkg/integration/components"
)
var Search = NewIntegrationTest(NewIntegrationTestArgs{
Description: "Search for a commit",
ExtraCmdArgs: "",
Skip: false,
SetupConfig: func(config *config.AppConfig) {},
SetupRepo: func(shell *Shell) {
shell.EmptyCommit("one")
shell.EmptyCommit("two")
shell.EmptyCommit("three")
shell.EmptyCommit("four")
},
Run: func(t *TestDriver, keys config.KeybindingConfig) {
t.Views().Commits().
Focus().
Lines(
Contains("four").IsSelected(),
Contains("three"),
Contains("two"),
Contains("one"),
).
Press(keys.Universal.StartSearch).
Tap(func() {
t.ExpectSearch().
Type("two").
Confirm()
t.Views().Search().Content(Contains("matches for 'two' (1 of 1)"))
}).
Lines(
Contains("four"),
Contains("three"),
Contains("two").IsSelected(),
Contains("one"),
).
Press(keys.Universal.StartSearch).
Tap(func() {
t.ExpectSearch().
Type("o").
Confirm()
t.Views().Search().Content(Contains("matches for 'o' (2 of 3)"))
}).
Lines(
Contains("four"),
Contains("three"),
Contains("two").IsSelected(),
Contains("one"),
).
Press("n").
Tap(func() {
t.Views().Search().Content(Contains("matches for 'o' (3 of 3)"))
}).
Lines(
Contains("four"),
Contains("three"),
Contains("two"),
Contains("one").IsSelected(),
).
Press("n").
Tap(func() {
t.Views().Search().Content(Contains("matches for 'o' (1 of 3)"))
}).
Lines(
Contains("four").IsSelected(),
Contains("three"),
Contains("two"),
Contains("one"),
).
Press("n").
Tap(func() {
t.Views().Search().Content(Contains("matches for 'o' (2 of 3)"))
}).
Lines(
Contains("four"),
Contains("three"),
Contains("two").IsSelected(),
Contains("one"),
).
Press("N").
Tap(func() {
t.Views().Search().Content(Contains("matches for 'o' (1 of 3)"))
}).
Lines(
Contains("four").IsSelected(),
Contains("three"),
Contains("two"),
Contains("one"),
).
Press("N").
Tap(func() {
t.Views().Search().Content(Contains("matches for 'o' (3 of 3)"))
}).
Lines(
Contains("four"),
Contains("three"),
Contains("two"),
Contains("one").IsSelected(),
)
},
})

View File

@ -0,0 +1,51 @@
package commit
import (
"github.com/jesseduffield/lazygit/pkg/config"
. "github.com/jesseduffield/lazygit/pkg/integration/components"
)
var SetAuthor = NewIntegrationTest(NewIntegrationTestArgs{
Description: "Set author on a commit",
ExtraCmdArgs: "",
Skip: false,
SetupConfig: func(config *config.AppConfig) {},
SetupRepo: func(shell *Shell) {
shell.SetConfig("user.email", "Bill@example.com")
shell.SetConfig("user.name", "Bill Smith")
shell.EmptyCommit("one")
shell.SetConfig("user.email", "John@example.com")
shell.SetConfig("user.name", "John Smith")
shell.EmptyCommit("two")
},
Run: func(t *TestDriver, keys config.KeybindingConfig) {
t.Views().Commits().
Focus().
Lines(
Contains("JS").Contains("two").IsSelected(),
Contains("BS").Contains("one"),
).
Press(keys.Commits.ResetCommitAuthor).
Tap(func() {
t.ExpectPopup().Menu().
Title(Equals("Amend commit attribute")).
Select(Contains(" set author")). // adding space at start to distinguish from 'reset author'
Confirm()
t.ExpectPopup().Prompt().
Title(Contains("Set author")).
SuggestionLines(
Contains("John Smith"),
Contains("Bill Smith"),
).
ConfirmSuggestion(Contains("John Smith"))
}).
Lines(
Contains("JS").Contains("two").IsSelected(),
Contains("BS").Contains("one"),
)
},
})

View File

@ -0,0 +1,42 @@
package staging
import (
"github.com/jesseduffield/lazygit/pkg/config"
. "github.com/jesseduffield/lazygit/pkg/integration/components"
)
var Search = NewIntegrationTest(NewIntegrationTestArgs{
Description: "Use the search feature in the staging panel",
ExtraCmdArgs: "",
Skip: false,
SetupConfig: func(config *config.AppConfig) {},
SetupRepo: func(shell *Shell) {
shell.CreateFile("file1", "one\ntwo\nthree\nfour\nfive")
},
Run: func(t *TestDriver, keys config.KeybindingConfig) {
t.Views().Files().
IsFocused().
Lines(
Contains("file1").IsSelected(),
).
PressEnter()
t.Views().Staging().
IsFocused().
Press(keys.Universal.StartSearch).
Tap(func() {
t.ExpectSearch().
Type("four").
Confirm()
t.Views().Search().Content(Contains("matches for 'four' (1 of 1)"))
}).
SelectedLine(Contains("+four")). // stage the line
PressPrimaryAction().
Content(DoesNotContain("+four")).
Tap(func() {
t.Views().StagingSecondary().
Content(Contains("+four"))
})
},
})

View File

@ -18,6 +18,7 @@ import (
"github.com/jesseduffield/lazygit/pkg/integration/tests/misc"
"github.com/jesseduffield/lazygit/pkg/integration/tests/patch_building"
"github.com/jesseduffield/lazygit/pkg/integration/tests/reflog"
"github.com/jesseduffield/lazygit/pkg/integration/tests/staging"
"github.com/jesseduffield/lazygit/pkg/integration/tests/stash"
"github.com/jesseduffield/lazygit/pkg/integration/tests/submodule"
"github.com/jesseduffield/lazygit/pkg/integration/tests/sync"
@ -38,6 +39,8 @@ var tests = []*components.IntegrationTest{
branch.RebaseAndDrop,
branch.RebaseDoesNotAutosquash,
branch.Reset,
branch.ResetUpstream,
branch.SetUpstream,
branch.Suggestions,
cherry_pick.CherryPick,
cherry_pick.CherryPickConflicts,
@ -46,8 +49,11 @@ var tests = []*components.IntegrationTest{
commit.CreateTag,
commit.DiscardOldFileChange,
commit.NewBranch,
commit.ResetAuthor,
commit.Revert,
commit.RevertMerge,
commit.Search,
commit.SetAuthor,
commit.StageRangeOfLines,
commit.Staged,
commit.StagedWithoutHooks,
@ -92,6 +98,7 @@ var tests = []*components.IntegrationTest{
reflog.CherryPick,
reflog.Patch,
reflog.Reset,
staging.Search,
stash.Apply,
stash.ApplyPatch,
stash.CreateBranch,

View File

@ -1 +0,0 @@
ref: refs/heads/master

View File

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

View File

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

View File

@ -1,6 +0,0 @@
# git ls-files --others --exclude-from=.git/info/exclude
# Lines that start with '#' are comments.
# For a project mostly in C, the following would be a good set of
# exclude patterns (uncomment them if you want to use them):
# *.[oa]
# *~

View File

@ -1,3 +0,0 @@
0000000000000000000000000000000000000000 291bcc7e708303b395f52245ec988ddbc985bae3 Author1 <Author1@example.com> 1651932821 +0200 commit (initial): myfile1
291bcc7e708303b395f52245ec988ddbc985bae3 63aff3f0f54955ea149f9c2f3c07697b8864940d Author1 <Author1@example.com> 1651932821 +0200 commit: myfile2
63aff3f0f54955ea149f9c2f3c07697b8864940d 0714eb875f11c56a2dc8c53c148889fe43602349 Author2 <Author2@example.com> 1651932824 +0200 commit (amend): myfile2

View File

@ -1,3 +0,0 @@
0000000000000000000000000000000000000000 291bcc7e708303b395f52245ec988ddbc985bae3 Author1 <Author1@example.com> 1651932821 +0200 commit (initial): myfile1
291bcc7e708303b395f52245ec988ddbc985bae3 63aff3f0f54955ea149f9c2f3c07697b8864940d Author1 <Author1@example.com> 1651932821 +0200 commit: myfile2
63aff3f0f54955ea149f9c2f3c07697b8864940d 0714eb875f11c56a2dc8c53c148889fe43602349 Author2 <Author2@example.com> 1651932824 +0200 commit (amend): myfile2

View File

@ -1,2 +0,0 @@
x•�Q
Â0DýÎ)ö_�lºÝ¦ ¢GÙ&,t‰”z{ƒx¿fx0oR5[ ó¡íªà•SñÂË4kÌDŠ‘sÄ X&ZhÈLEÒœ<Û½îpûÂùW®ú{lzJÕ.];â<„Ž>xï:íwMÿ:{—uStÈ×5'

View File

@ -1,2 +0,0 @@
x•ŽK
1]çÙ ’î$=iÑ£äÓÁ�‰3 ôöñ®ªxPðòÚÚÜ5‚;ô]DÇÉ:ˆž«)E¤2±×D–Äd*: µÅ]#dH9O2™`�M–}õˆÎKæJI>E±*>û}Ýõí ÐçŸ\åÛ¶È)¯í¢�<°Å€ ��Qc÷ºüªö®ó"¨>dB„

View File

@ -1 +0,0 @@
0714eb875f11c56a2dc8c53c148889fe43602349

View File

@ -1 +0,0 @@
test1

View File

@ -1 +0,0 @@
test2

View File

@ -1 +0,0 @@
{"KeyEvents":[{"Timestamp":638,"Mod":0,"Key":256,"Ch":52},{"Timestamp":1406,"Mod":0,"Key":256,"Ch":97},{"Timestamp":2584,"Mod":0,"Key":256,"Ch":121},{"Timestamp":5654,"Mod":0,"Key":256,"Ch":113}],"ResizeEvents":[{"Timestamp":0,"Width":117,"Height":83}]}

View File

@ -1,20 +0,0 @@
#!/bin/sh
set -e
cd $1
git init
git config user.email "Author1@example.com"
git config user.name "Author1"
echo test1 > myfile1
git add .
git commit -am "myfile1"
echo test2 > myfile2
git add .
git commit -am "myfile2"
git config user.email "Author2@example.com"
git config user.name "Author2"

View File

@ -1 +0,0 @@
{ "description": "In this test the author of a commit is reset to a different name/email.", "speed": 5 }

View File

@ -1 +0,0 @@
ref: refs/heads/master

View File

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

View File

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

View File

@ -1,7 +0,0 @@
# git ls-files --others --exclude-from=.git/info/exclude
# Lines that start with '#' are comments.
# For a project mostly in C, the following would be a good set of
# exclude patterns (uncomment them if you want to use them):
# *.[oa]
# *~
.DS_Store

View File

@ -1,5 +0,0 @@
0000000000000000000000000000000000000000 f05f4d92d7babb2f40ebd2829dccee0afff44c70 CI <CI@example.com> 1617671505 +1000 commit (initial): myfile1
f05f4d92d7babb2f40ebd2829dccee0afff44c70 6b94b71598d5aa96357ab261599cfd99a4c2c9d0 CI <CI@example.com> 1617671505 +1000 commit: myfile2
6b94b71598d5aa96357ab261599cfd99a4c2c9d0 5fb9c54526790a11246b733354bf896da8ffc09d CI <CI@example.com> 1617671505 +1000 commit: myfile3
5fb9c54526790a11246b733354bf896da8ffc09d fc759ce6e48e0012eab3f02ec3524a55be938dd5 CI <CI@example.com> 1617671505 +1000 commit: myfile4
fc759ce6e48e0012eab3f02ec3524a55be938dd5 3ec60bb22aa39d08428e57e3251563f797b40fc8 CI <CI@example.com> 1617671517 +1000 commit: asd

View File

@ -1,5 +0,0 @@
0000000000000000000000000000000000000000 f05f4d92d7babb2f40ebd2829dccee0afff44c70 CI <CI@example.com> 1617671505 +1000 commit (initial): myfile1
f05f4d92d7babb2f40ebd2829dccee0afff44c70 6b94b71598d5aa96357ab261599cfd99a4c2c9d0 CI <CI@example.com> 1617671505 +1000 commit: myfile2
6b94b71598d5aa96357ab261599cfd99a4c2c9d0 5fb9c54526790a11246b733354bf896da8ffc09d CI <CI@example.com> 1617671505 +1000 commit: myfile3
5fb9c54526790a11246b733354bf896da8ffc09d fc759ce6e48e0012eab3f02ec3524a55be938dd5 CI <CI@example.com> 1617671505 +1000 commit: myfile4
fc759ce6e48e0012eab3f02ec3524a55be938dd5 3ec60bb22aa39d08428e57e3251563f797b40fc8 CI <CI@example.com> 1617671517 +1000 commit: asd

View File

@ -1,2 +0,0 @@
x�ŽM
Â0F]çÙ ’ÉoD„®zŒÉd‚cK‰ ·7GpõàñøøxkmíПú!¢m†äxŠPªw®’wµRW'ÃSv`9 ²¨�yu3úœ àTFe‡@®‘<[Æb½ûc;ô¼èë¼ÜåCmÊ…·vÓ!űa‚>ƒ1F ;Nuù3Wí[ק8õo:ª

View File

@ -1,2 +0,0 @@
x�ÎM
Â0@a×9Åì™L“‰¡«#?3Xhl)ôöönß╵µ¹ƒ�îÔwHap6ù¨X«ˆFŽÂQ3|%æJ”QÉY6[ÚåÕAÑ««‘jÈ)gR‡’+])ÖRD0©ªs% Iïþ\w'¸�ÓC>©m‹\ÊÚî`ÙÖ£‡³EDsÔcªËŸÜ´¯Î‹�ùd=;g

View File

@ -1,2 +0,0 @@
xŤÍA
Â0@Q×9Ĺ왩“Iˇ«#M&Xč�R"čííÜ~üÜĚ–Ärę»* J®�d7Ť…Y)J‰4$Ş�gľᚲ\z÷WŰaśŕ>NOý$ŰV˝äf ˇ �<z8"şŁ“®rgßş¬Jî0ß,Ĺ

View File

@ -1 +0,0 @@
3ec60bb22aa39d08428e57e3251563f797b40fc8

View File

@ -1 +0,0 @@
test1

View File

@ -1 +0,0 @@
test3

View File

@ -1 +0,0 @@
test4

View File

@ -1 +0,0 @@
test5

View File

@ -1 +0,0 @@
{"KeyEvents":[{"Timestamp":521,"Mod":0,"Key":259,"Ch":0},{"Timestamp":681,"Mod":0,"Key":259,"Ch":0},{"Timestamp":1282,"Mod":0,"Key":256,"Ch":47},{"Timestamp":1489,"Mod":0,"Key":256,"Ch":102},{"Timestamp":1593,"Mod":0,"Key":256,"Ch":105},{"Timestamp":1640,"Mod":0,"Key":256,"Ch":108},{"Timestamp":1722,"Mod":0,"Key":256,"Ch":101},{"Timestamp":2034,"Mod":0,"Key":256,"Ch":50},{"Timestamp":2473,"Mod":0,"Key":13,"Ch":13},{"Timestamp":3209,"Mod":0,"Key":13,"Ch":13},{"Timestamp":4514,"Mod":0,"Key":256,"Ch":32},{"Timestamp":4889,"Mod":2,"Key":16,"Ch":16},{"Timestamp":5409,"Mod":0,"Key":258,"Ch":0},{"Timestamp":5713,"Mod":0,"Key":258,"Ch":0},{"Timestamp":6002,"Mod":0,"Key":13,"Ch":13},{"Timestamp":6490,"Mod":0,"Key":260,"Ch":0},{"Timestamp":6785,"Mod":0,"Key":260,"Ch":0},{"Timestamp":7825,"Mod":0,"Key":256,"Ch":47},{"Timestamp":8425,"Mod":0,"Key":256,"Ch":102},{"Timestamp":8513,"Mod":0,"Key":256,"Ch":105},{"Timestamp":8561,"Mod":0,"Key":256,"Ch":108},{"Timestamp":8665,"Mod":0,"Key":256,"Ch":101},{"Timestamp":8858,"Mod":0,"Key":13,"Ch":13},{"Timestamp":9378,"Mod":0,"Key":256,"Ch":110},{"Timestamp":9601,"Mod":0,"Key":256,"Ch":110},{"Timestamp":10155,"Mod":0,"Key":27,"Ch":0},{"Timestamp":10481,"Mod":0,"Key":256,"Ch":32},{"Timestamp":10785,"Mod":0,"Key":256,"Ch":99},{"Timestamp":10993,"Mod":0,"Key":256,"Ch":97},{"Timestamp":11081,"Mod":0,"Key":256,"Ch":115},{"Timestamp":11129,"Mod":0,"Key":256,"Ch":100},{"Timestamp":11489,"Mod":0,"Key":13,"Ch":13},{"Timestamp":11889,"Mod":0,"Key":256,"Ch":113}],"ResizeEvents":[{"Timestamp":0,"Width":127,"Height":35}]}

View File

@ -1,24 +0,0 @@
#!/bin/sh
set -e
cd $1
git init
git config user.email "CI@example.com"
git config user.name "CI"
echo test1 > myfile1
git add .
git commit -am "myfile1"
echo test2 > myfile2
git add .
git commit -am "myfile2"
echo test3 > myfile3
git add .
git commit -am "myfile3"
echo test4 > myfile4
git add .
git commit -am "myfile4"
echo test5 > myfile5

View File

@ -1 +0,0 @@
{ "description": "" }

View File

@ -1 +0,0 @@
ref: refs/heads/master

View File

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

View File

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

View File

@ -1,7 +0,0 @@
# git ls-files --others --exclude-from=.git/info/exclude
# Lines that start with '#' are comments.
# For a project mostly in C, the following would be a good set of
# exclude patterns (uncomment them if you want to use them):
# *.[oa]
# *~
.DS_Store

View File

@ -1,2 +0,0 @@
0000000000000000000000000000000000000000 70dcf03faa734af0278690e1b0f8e767b733d88a CI <CI@example.com> 1617671518 +1000 commit (initial): myfile1
70dcf03faa734af0278690e1b0f8e767b733d88a 364e6307f708c6f17d83c7309aaf9a3034210236 CI <CI@example.com> 1617671530 +1000 commit: asd

View File

@ -1,2 +0,0 @@
0000000000000000000000000000000000000000 70dcf03faa734af0278690e1b0f8e767b733d88a CI <CI@example.com> 1617671518 +1000 commit (initial): myfile1
70dcf03faa734af0278690e1b0f8e767b733d88a 364e6307f708c6f17d83c7309aaf9a3034210236 CI <CI@example.com> 1617671530 +1000 commit: asd

View File

@ -1,2 +0,0 @@
x�ֽA
ֳ @ׁ®=ֵל eF�c¡„BV9ֶTGˆ‚…פצֽ÷‎<ר©ױ÷t .}W¯BוN�זל’fµ‘[˜1©EW^Q’3עין¶ֳ4ֳc��zH�V½¥VG @˜�p%D4g=']�ה¦~ֻ²*™A,ן

View File

@ -1 +0,0 @@
364e6307f708c6f17d83c7309aaf9a3034210236

View File

@ -1,4 +0,0 @@
line 1
line 2
line 3
line 4

View File

@ -1 +0,0 @@
{"KeyEvents":[{"Timestamp":635,"Mod":0,"Key":13,"Ch":13},{"Timestamp":1379,"Mod":0,"Key":256,"Ch":47},{"Timestamp":1683,"Mod":0,"Key":256,"Ch":108},{"Timestamp":1707,"Mod":0,"Key":256,"Ch":105},{"Timestamp":1739,"Mod":0,"Key":256,"Ch":110},{"Timestamp":1812,"Mod":0,"Key":256,"Ch":101},{"Timestamp":1884,"Mod":0,"Key":256,"Ch":32},{"Timestamp":2003,"Mod":0,"Key":256,"Ch":51},{"Timestamp":2172,"Mod":0,"Key":13,"Ch":13},{"Timestamp":2532,"Mod":0,"Key":256,"Ch":32},{"Timestamp":3621,"Mod":0,"Key":258,"Ch":0},{"Timestamp":4209,"Mod":0,"Key":27,"Ch":0},{"Timestamp":4723,"Mod":0,"Key":257,"Ch":0},{"Timestamp":5004,"Mod":0,"Key":256,"Ch":32},{"Timestamp":5188,"Mod":0,"Key":257,"Ch":0},{"Timestamp":5636,"Mod":0,"Key":258,"Ch":0},{"Timestamp":5923,"Mod":0,"Key":256,"Ch":32},{"Timestamp":7412,"Mod":0,"Key":256,"Ch":47},{"Timestamp":8027,"Mod":0,"Key":256,"Ch":108},{"Timestamp":8060,"Mod":0,"Key":256,"Ch":105},{"Timestamp":8084,"Mod":0,"Key":256,"Ch":110},{"Timestamp":8139,"Mod":0,"Key":256,"Ch":101},{"Timestamp":8228,"Mod":0,"Key":256,"Ch":32},{"Timestamp":8315,"Mod":0,"Key":256,"Ch":52},{"Timestamp":8556,"Mod":0,"Key":13,"Ch":13},{"Timestamp":8915,"Mod":0,"Key":256,"Ch":32},{"Timestamp":9622,"Mod":0,"Key":27,"Ch":0},{"Timestamp":10414,"Mod":0,"Key":27,"Ch":0},{"Timestamp":11140,"Mod":0,"Key":256,"Ch":99},{"Timestamp":11419,"Mod":0,"Key":256,"Ch":97},{"Timestamp":11500,"Mod":0,"Key":256,"Ch":115},{"Timestamp":11580,"Mod":0,"Key":256,"Ch":100},{"Timestamp":11813,"Mod":0,"Key":13,"Ch":13},{"Timestamp":12276,"Mod":0,"Key":256,"Ch":113}],"ResizeEvents":[{"Timestamp":0,"Width":127,"Height":35}]}

View File

@ -1,18 +0,0 @@
#!/bin/sh
set -e
cd $1
git init
git config user.email "CI@example.com"
git config user.name "CI"
echo "line 1" > myfile1
git add .
git commit -am "myfile1"
echo "line 2" >> myfile1
echo "line 3" >> myfile1
echo "line 4" >> myfile1

View File

@ -1 +0,0 @@
{ "description": "" }

View File

@ -1 +0,0 @@
ref: refs/heads/master

View File

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

View File

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

View File

@ -1,7 +0,0 @@
# git ls-files --others --exclude-from=.git/info/exclude
# Lines that start with '#' are comments.
# For a project mostly in C, the following would be a good set of
# exclude patterns (uncomment them if you want to use them):
# *.[oa]
# *~
.DS_Store

View File

@ -1,4 +0,0 @@
0000000000000000000000000000000000000000 2075aeb39a2a66a9607860a65b2a71c517760254 Author1 <Author1@example.com> 1652008089 +1000 commit (initial): myfile1
2075aeb39a2a66a9607860a65b2a71c517760254 d01c8bb001458d0a7c01193813685c658e0355ac Author1 <Author1@example.com> 1652008089 +1000 commit: myfile2
d01c8bb001458d0a7c01193813685c658e0355ac 8710ece70b7db9638b9645e93abdbcf210fa4595 Author2 <Author2@example.com> 1652008089 +1000 commit: myfile3
8710ece70b7db9638b9645e93abdbcf210fa4595 baf3189129ba8878ba9b4107eaaaf3389287259b Author2 <Author2@example.com> 1652008097 +1000 commit (amend): myfile3

View File

@ -1,4 +0,0 @@
0000000000000000000000000000000000000000 2075aeb39a2a66a9607860a65b2a71c517760254 Author1 <Author1@example.com> 1652008089 +1000 commit (initial): myfile1
2075aeb39a2a66a9607860a65b2a71c517760254 d01c8bb001458d0a7c01193813685c658e0355ac Author1 <Author1@example.com> 1652008089 +1000 commit: myfile2
d01c8bb001458d0a7c01193813685c658e0355ac 8710ece70b7db9638b9645e93abdbcf210fa4595 Author2 <Author2@example.com> 1652008089 +1000 commit: myfile3
8710ece70b7db9638b9645e93abdbcf210fa4595 baf3189129ba8878ba9b4107eaaaf3389287259b Author2 <Author2@example.com> 1652008097 +1000 commit (amend): myfile3

Some files were not shown because too many files have changed in this diff Show More