mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-06-23 00:39:13 +02:00
Allow adding a file to the .git/info/exclude file
This commit is contained in:
committed by
Jesse Duffield
parent
41071c3703
commit
11d766053e
@ -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
|
||||
}
|
Reference in New Issue
Block a user