Skip to contentSkip to conversation

ignore more generated files

PATCH In review Mike Frysinger 4 participants 8 messages Sep 16, 2012 – Sep 17, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ignore more generated files

---
 .gitignore |    8 ++++++++
 1 file changed, 8 insertions(+)
.gitignore +8 -0
index 824c0d2..25c134e 100644
@@ -11,6 +11,7 @@ trace-dtrace.dtrace
 *-darwin-user
 *-linux-user
 *-bsd-user
+libcacard/vscclient
 libdis*
 libhw32
 libhw64
@@ -51,7 +52,11 @@ test-string-output-visitor
 test-visitor-serialization
 fsdev/virtfs-proxy-helper.1
 fsdev/virtfs-proxy-helper.pod
+a.out*
 .gdbinit
+.gdb_history
+core
+gmon.out
 *.a
 *.aux
 *.cp
@@ -79,6 +84,9 @@ fsdev/virtfs-proxy-helper.pod
 *.orig
 .pc
 patches
+*.diff
+*.patch
+*.rej
 pc-bios/bios-pq/status
 pc-bios/vgabios-pq/status
 pc-bios/optionrom/linuxboot.bin
Signature · 1 line
1.7.9.7
#1 lore raw

Am 16.09.2012 22:11, schrieb Mike Frysinger:

Quoted 30 lines
---
  .gitignore |    8 ++++++++
  1 file changed, 8 insertions(+)
.gitignore +5 -0
index 824c0d2..25c134e 100644
@@ -11,6 +11,7 @@ trace-dtrace.dtrace
  *-darwin-user
  *-linux-user
  *-bsd-user
+libcacard/vscclient
  libdis*
  libhw32
  libhw64
@@ -51,7 +52,11 @@ test-string-output-visitor
  test-visitor-serialization
  fsdev/virtfs-proxy-helper.1
  fsdev/virtfs-proxy-helper.pod
+a.out*
  .gdbinit
+.gdb_history
+core
+gmon.out
  *.a
  *.aux
  *.cp

.gitignore fsdev/virtfs-proxy-helper.pod · line 92

Quoted 9 lines
.gitignore +3 -0
@@ -79,6 +84,9 @@ fsdev/virtfs-proxy-helper.pod
  *.orig
  .pc
  patches
+*.diff
+*.patch
+*.rej
  pc-bios/bios-pq/status
  pc-bios/vgabios-pq/status
  pc-bios/optionrom/linuxboot.bin

IMHO .gitignore should only contain files which are generated by a normal QEMU build.

a.out*, .gdb_history, core, *.diff, *patch, *.rej are not QEMU specific and should be ignored in the user's GIT configuration.

QEMU's .gitignore already contains too many entries which don't belong there.Maybe it would be a good idea to remove those entries and add a comment which explains what entries are ok.

Regards

Stefan W.

#2 lore raw
Quoted 13 lines · On Sunday 16 September 2012 16:33:15 Stefan Weil wrote:

Am 16.09.2012 22:11, schrieb Mike Frysinger:

.gitignore test-string-output-visitor

Quoted 8 lines
.gitignore +8 -0
+libcacard/vscclient
+a.out*
+.gdb_history
+core
+gmon.out
+*.diff
+*.patch
+*.rej

IMHO .gitignore should only contain files which are generated by a normal QEMU build.

Quoted 2 lines

a.out*, .gdb_history, core, *.diff, *patch, *.rej are not QEMU specific and should be ignored in the user's GIT configuration.

these files show up a lot when doing development on qemu, hence i think they do make sense to be listed here. it also makes things "just work" for all users rather than requiring every one to set up their local system in the same way. plus, that would conflict with repos that do want to merge these types of files (uncommon, but not unheard of as test inputs).

it's not like entries in this file "cost" anything at all. -mike

#3 lore raw

Am 16.09.2012 22:55, schrieb Mike Frysinger:

Quoted 15 lines · On Sunday 16 September 2012 16:33:15 Stefan Weil wrote:
Quoted 12 lines

Am 16.09.2012 22:11, schrieb Mike Frysinger:

.gitignore test-string-output-visitor

Quoted 8 lines
.gitignore +8 -0
+libcacard/vscclient
+a.out*
+.gdb_history
+core
+gmon.out
+*.diff
+*.patch
+*.rej

IMHO .gitignore should only contain files which are generated by a normal QEMU build.

Quoted 2 lines

a.out*, .gdb_history, core, *.diff, *patch, *.rej are not QEMU specific and should be ignored in the user's GIT configuration.

Quoted 8 lines

these files show up a lot when doing development on qemu, hence i think they do make sense to be listed here. it also makes things "just work" for all users rather than requiring every one to set up their local system in the same way. plus, that would conflict with repos that do want to merge these types of files (uncommon, but not unheard of as test inputs).

it's not like entries in this file "cost" anything at all. -mike

Yes, these files show up when doing development, but not only on QEMU. They are not at all QEMU specific. I assume that most developers also have other projects which they work on, so IMHO ignoring those files in their user settings makes more sense.

I personally would prefer to see *.rej files. Your patch ignores them (which is not what I want). Therefore the claim
that those entries make thinks "just work" for all users is not true:
it's at least all users minus one.

See more in a previous mail on the same subject:
http://lists.gnu.org/archive/html/qemu-devel/2011-02/msg03017.html
(there was also another discussion thread which I did not find any more).

You can also have a look at other project's .gitignore. Linux' .gitignore for example looks much better than QEMU's. It has comments (good!) and only very few entries which are not generated files.

- Stefan

#4 lore raw
Quoted 9 lines · Stefan Weil

Yes, these files show up when doing development, but not only on QEMU. They are not at all QEMU specific. I assume that most developers also have other projects which they work on, so IMHO ignoring those files in their user settings makes more sense.

I personally would prefer to see *.rej files. Your patch ignores them (which is not what I want). Therefore the claim
that those entries make thinks "just work" for all users is not true:
it's at least all users minus one.

It is also possible to set up your own .git/info/exclude to override .gitignore and explicitly show *.rej files, even when that is different from the project default.

Signature · 2 lines
Eric Blake   [email protected]    +1-919-301-3266
Libvirt virtualization library http://libvirt.org
#5 lore raw
In reply to Mike Frysinger

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 11 lines · Mike Frysinger
Quoted 9 lines · On Sunday 16 September 2012 16:33:15 Stefan Weil wrote:

Am 16.09.2012 22:11, schrieb Mike Frysinger:

Review

Quoted 2 lines
(quoted diff) +2 -0
+libcacard/vscclient +a.out* +.gdb_history +core +gmon.out 
+*.diff +*.patch +*.rej

IMHO .gitignore should only contain files which are generated by a normal QEMU build.

a.out*, .gdb_history, core, *.diff, *patch, *.rej are not QEMU specific and should be ignored in the user's GIT configuration.

Quoted 8 lines

these files show up a lot when doing development on qemu, hence i think they do make sense to be listed here. it also makes things "just work" for all users rather than requiring every one to set up their local system in the same way. plus, that would conflict with repos that do want to merge these types of files (uncommon, but not unheard of as test inputs).

it's not like entries in this file "cost" anything at all.

NAK. I'd like to see what is polluting my repositories, not ignoring it because that's the policy of someone else. Excluding *.rej is something I would _never_ do. If they lie around somewhere, something was not merged here - that's my policy.

You are free to set your own core.excludefile. So please do not spread this to generic .gitignores.

Jan

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iEYEARECAAYFAlBWzxoACgkQitSsb3rl5xQk5ACgoRORiSgWkWlhkz4YdE2zQ1ZB moUAoK8D5khm+Tz9QrcvKoAhpHOmz5pA
=FgFo
-----END PGP SIGNATURE-----

#6 lore raw
Quoted 19 lines · On Monday 17 September 2012 03:19:54 Jan Kiszka wrote:
Quoted 18 lines · Mike Frysinger
Quoted 9 lines · On Sunday 16 September 2012 16:33:15 Stefan Weil wrote:

Am 16.09.2012 22:11, schrieb Mike Frysinger:

Review

Quoted 2 lines
(quoted diff) +2 -0
+libcacard/vscclient +a.out* +.gdb_history +core +gmon.out
+*.diff +*.patch +*.rej

IMHO .gitignore should only contain files which are generated by a normal QEMU build.

a.out*, .gdb_history, core, *.diff, *patch, *.rej are not QEMU specific and should be ignored in the user's GIT configuration.

these files show up a lot when doing development on qemu, hence i think they do make sense to be listed here. it also makes things "just work" for all users rather than requiring every one to set up their local system in the same way. plus, that would conflict with repos that do want to merge these types of files (uncommon, but not unheard of as test inputs).

Quoted 6 lines
Quoted 1 line

it's not like entries in this file "cost" anything at all.

NAK. I'd like to see what is polluting my repositories, not ignoring it because that's the policy of someone else. Excluding *.rej is something I would _never_ do. If they lie around somewhere, something was not merged here - that's my policy.

if something wasn't merged, your git command would have told you and spit an error. same with patch. if .rej files are showing up and you're not noticing at the time of patch application, it's because you're using the tools wrong. -mike

#7 lore raw
Quoted 22 lines · Mike Frysinger
Quoted 21 lines · On Monday 17 September 2012 03:19:54 Jan Kiszka wrote:
Quoted 19 lines · Mike Frysinger
Quoted 9 lines · On Sunday 16 September 2012 16:33:15 Stefan Weil wrote:

Am 16.09.2012 22:11, schrieb Mike Frysinger:

Review

Quoted 2 lines
(quoted diff) +2 -0
+libcacard/vscclient +a.out* +.gdb_history +core +gmon.out
+*.diff +*.patch +*.rej

IMHO .gitignore should only contain files which are generated by a normal QEMU build.

a.out*, .gdb_history, core, *.diff, *patch, *.rej are not QEMU specific and should be ignored in the user's GIT configuration.

these files show up a lot when doing development on qemu, hence i think they do make sense to be listed here. it also makes things "just work" for all users rather than requiring every one to set up their local system in the same way. plus, that would conflict with repos that do want to merge these types of files (uncommon, but not unheard of as test inputs).

it's not like entries in this file "cost" anything at all.

Quoted 8 lines
Quoted 4 lines

NAK. I'd like to see what is polluting my repositories, not ignoring it because that's the policy of someone else. Excluding *.rej is something I would _never_ do. If they lie around somewhere, something was not merged here - that's my policy.

if something wasn't merged, your git command would have told you and spit an error. same with patch. if .rej files are showing up and you're not noticing at the time of patch application, it's because you're using the tools wrong.

Whichever tool I use and how need not be your worry - nor should it be harmed by a generic .gitignore.

Jan