mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-11 12:25:47 +02:00
Allow adding a file to the .git/info/exclude file
This commit is contained in:
parent
41071c3703
commit
11d766053e
40 changed files with 240 additions and 57 deletions
|
@ -0,0 +1 @@
|
|||
ref: refs/heads/master
|
|
@ -0,0 +1,7 @@
|
|||
[core]
|
||||
repositoryformatversion = 0
|
||||
filemode = true
|
||||
bare = false
|
||||
logallrefupdates = true
|
||||
ignorecase = true
|
||||
precomposeunicode = true
|
|
@ -0,0 +1 @@
|
|||
Unnamed repository; edit this file 'description' to name the repository.
|
|
@ -0,0 +1,6 @@
|
|||
# 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]
|
||||
# *~
|
1
test/integration/excludeGitIgnore/expected/repo/.gitignore
vendored
Normal file
1
test/integration/excludeGitIgnore/expected/repo/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
test1
|
1
test/integration/excludeGitIgnore/recording.json
Normal file
1
test/integration/excludeGitIgnore/recording.json
Normal file
|
@ -0,0 +1 @@
|
|||
{"KeyEvents":[{"Timestamp":2674,"Mod":0,"Key":256,"Ch":105},{"Timestamp":4846,"Mod":0,"Key":256,"Ch":101},{"Timestamp":8064,"Mod":0,"Key":13,"Ch":13},{"Timestamp":8515,"Mod":0,"Key":256,"Ch":113}],"ResizeEvents":[{"Timestamp":0,"Width":170,"Height":55}]}
|
14
test/integration/excludeGitIgnore/setup.sh
Normal file
14
test/integration/excludeGitIgnore/setup.sh
Normal file
|
@ -0,0 +1,14 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
cd $1
|
||||
|
||||
git config user.email "CI@example.com"
|
||||
git config user.name "CI"
|
||||
|
||||
git init
|
||||
|
||||
|
||||
echo test1 > .gitignore
|
||||
|
4
test/integration/excludeGitIgnore/test.json
Normal file
4
test/integration/excludeGitIgnore/test.json
Normal file
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"description": "In this test .gitignore is added to .git/info/exclude using the ignore or exclude menu to check that this operation is to allowed",
|
||||
"speed": 5
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
ref: refs/heads/master
|
|
@ -0,0 +1,7 @@
|
|||
[core]
|
||||
repositoryformatversion = 0
|
||||
filemode = true
|
||||
bare = false
|
||||
logallrefupdates = true
|
||||
ignorecase = true
|
||||
precomposeunicode = true
|
|
@ -0,0 +1 @@
|
|||
Unnamed repository; edit this file 'description' to name the repository.
|
|
@ -0,0 +1,8 @@
|
|||
# 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]
|
||||
# *~
|
||||
|
||||
myfile1
|
1
test/integration/excludeMenu/expected/repo/myfile1
Normal file
1
test/integration/excludeMenu/expected/repo/myfile1
Normal file
|
@ -0,0 +1 @@
|
|||
test1
|
1
test/integration/excludeMenu/recording.json
Normal file
1
test/integration/excludeMenu/recording.json
Normal file
|
@ -0,0 +1 @@
|
|||
{"KeyEvents":[{"Timestamp":1418,"Mod":0,"Key":256,"Ch":105},{"Timestamp":1725,"Mod":0,"Key":256,"Ch":101},{"Timestamp":3207,"Mod":0,"Key":256,"Ch":113}],"ResizeEvents":[{"Timestamp":0,"Width":170,"Height":55}]}
|
13
test/integration/excludeMenu/setup.sh
Normal file
13
test/integration/excludeMenu/setup.sh
Normal file
|
@ -0,0 +1,13 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
cd $1
|
||||
git config user.email "CI@example.com"
|
||||
git config user.name "CI"
|
||||
|
||||
git init
|
||||
|
||||
|
||||
echo test1 > myfile1
|
||||
|
4
test/integration/excludeMenu/test.json
Normal file
4
test/integration/excludeMenu/test.json
Normal file
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"description": "In this test a file is added to .git/info/exclude using the ignore or exclude menu",
|
||||
"speed": 5
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
ref: refs/heads/master
|
|
@ -0,0 +1,7 @@
|
|||
[core]
|
||||
repositoryformatversion = 0
|
||||
filemode = true
|
||||
bare = false
|
||||
logallrefupdates = true
|
||||
ignorecase = true
|
||||
precomposeunicode = true
|
|
@ -0,0 +1 @@
|
|||
Unnamed repository; edit this file 'description' to name the repository.
|
|
@ -0,0 +1,6 @@
|
|||
# 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]
|
||||
# *~
|
2
test/integration/gitignoreMenu/expected/repo/.gitignore
vendored
Normal file
2
test/integration/gitignoreMenu/expected/repo/.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
|
||||
myfile1
|
1
test/integration/gitignoreMenu/recording.json
Normal file
1
test/integration/gitignoreMenu/recording.json
Normal file
|
@ -0,0 +1 @@
|
|||
{"KeyEvents":[{"Timestamp":3418,"Mod":0,"Key":256,"Ch":105},{"Timestamp":3721,"Mod":0,"Key":256,"Ch":105},{"Timestamp":5154,"Mod":0,"Key":256,"Ch":113}],"ResizeEvents":[{"Timestamp":0,"Width":170,"Height":55}]}
|
13
test/integration/gitignoreMenu/setup.sh
Normal file
13
test/integration/gitignoreMenu/setup.sh
Normal file
|
@ -0,0 +1,13 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
cd $1
|
||||
git config user.email "CI@example.com"
|
||||
git config user.name "CI"
|
||||
|
||||
git init
|
||||
|
||||
|
||||
echo test1 > myfile1
|
||||
|
4
test/integration/gitignoreMenu/test.json
Normal file
4
test/integration/gitignoreMenu/test.json
Normal file
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"description": "In this test a file is added to .gitingnore using the ignore or exclude menu",
|
||||
"speed": 5
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue