Skip to content

Commit 48d3470

Browse files
committed
buildsys: add some patterns to .gitignore
There are some build output files that are not gitignore; most are generated by "make", except for *.trs which is from "make -C tests/src/editor/ check", and "conftest.c" and "confdefs.h" which is from a configure step. The missing ignores makes it very easy to accidentally commit files when working with the Jujutsu VCS which tracks files automatically. Fix this ignoring all patterns I've seen. Signed-off-by: Johannes Altmanninger <aclopte@gmail.com> Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
1 parent b21bddd commit 48d3470

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
*~
66
*.cache
77
*.tar.gz
8+
# autoconf runs "mktemp ./confXXXXXX"
9+
/conf??????/
10+
/confdefs.h
11+
/conftest.err
12+
/conftest.c
813
ABOUT-NLS
914
Make.common
1015
Makefile
@@ -44,6 +49,11 @@ make.log
4449
make.clang
4550
make.gcc
4651
make.tcc
52+
misc/mc.ext.ini
53+
mc.charsets
54+
src/vfs/extfs/helpers/torrent
55+
src/vfs/extfs/helpers/uc1541
4756
tests/src/editor/test-data.txt
57+
src/vfs/extfs/helpers/usqfs
4858
tests/src/vfs/extfs/helpers-list/data/config.sh
4959
mc-version.h

tests/.gitignore

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,22 @@ lib/strutil/parse_integer.trs
4949
lib/strutil/replace__str_replace_all
5050
lib/strutil/replace__str_replace_all.log
5151
lib/strutil/replace__str_replace_all.trs
52+
lib/strutil/str_replace_all
53+
lib/strutil/str_rstrip_eol
5254
lib/strutil/str_verscmp
5355
lib/strutil/str_verscmp.log
5456
lib/strutil/str_verscmp.trs
5557
lib/strutil/test-suite.log
5658
lib/terminal
5759
lib/test-suite.log
60+
lib/tty
5861
lib/utilinux__my_system-fork_child.log
5962
lib/utilinux__my_system-fork_child_shell.log
63+
lib/utilunix__mc_pstream_get_string
64+
lib/widget/group_init_destroy
65+
lib/widget/hotkey_equal
66+
lib/widget/widget_find_by_id
67+
lib/widget/widget_make_global_local
6068
lib/utilinux__my_system-fork_fail.log
6169
lib/utilunix__my_system_fork_child
6270
lib/utilunix__my_system_fork_child.log
@@ -130,9 +138,12 @@ lib/x_basename
130138
lib/x_basename.log
131139
lib/x_basename.trs
132140
src/editor/edit_complete_word_cmd.log
141+
src/editor/edit_complete_word_cmd_test_data.txt
133142
src/editor/editcmd__edit_complete_word_cmd
134143
src/editor/editcmd__edit_complete_word_cmd.log
135144
src/editor/editcmd__edit_complete_word_cmd.trs
145+
src/editor/edit_complete_word_cmd
146+
src/editor/edit_replace_cmd
136147
src/editor/test-suite.log
137148
src/execute__execute_external_editor_or_viewer
138149
src/execute__execute_external_editor_or_viewer.log
@@ -143,6 +154,7 @@ src/execute__execute_get_external_cmd_opts_from_config.trs
143154
src/execute__execute_with_vfs_arg
144155
src/execute__execute_with_vfs_arg.log
145156
src/execute__execute_with_vfs_arg.trs
157+
src/filemanager/cd_to
146158
src/filemanager/do_cd_command
147159
src/filemanager/do_cd_command.log
148160
src/filemanager/do_cd_command.trs
@@ -165,3 +177,5 @@ src/vfs/extfs/helpers-list/run
165177
src/vfs/extfs/helpers-list/run.log
166178
src/vfs/extfs/helpers-list/run.trs
167179
src/vfs/extfs/helpers-list/test-suite.log
180+
src/vfs/ftpfs/ftpfs_parse_long_list
181+
*.trs

0 commit comments

Comments
 (0)