Skip to contentSkip to conversation

gitignore: unignore *.patch

PATCH In review Michael Tokarev 4 participants 5 messages Jun 5, 2013 – Jun 12, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gitignore: unignore *.patch

This partially reverts:

commit 082369e62c5bbaba89f173c2b803bc24115bb111
Author: liguang <[email protected]>
Date: Fri Mar 22 16:44:13 2013 +0800

gitignore: ignore more files

I'm not sure how this went in. The thing is that
ignoring *.patch, in my opinion, is just wrong.
Especially for downstreams who apply patches for
real.

---
 .gitignore |    1 -
 1 file changed, 1 deletion(-)
.gitignore +0 -1
index 64e9466..0fe114d 100644
@@ -82,7 +82,6 @@ fsdev/virtfs-proxy-helper.pod
 *.swp
 *.orig
 .pc
-*.patch
 *.gcda
 *.gcno
 patches
Signature · 1 line
1.7.10.4
#1 lore raw
Quoted 6 lines · Michael Tokarev

This partially reverts:

commit 082369e62c5bbaba89f173c2b803bc24115bb111
Author: liguang <[email protected]>
Date: Fri Mar 22 16:44:13 2013 +0800

Quoted 6 lines

gitignore: ignore more files

I'm not sure how this went in. The thing is that
ignoring *.patch, in my opinion, is just wrong.
Especially for downstreams who apply patches for
real.

Personally I think a lot of the random rubbish in our .gitignore is bogus and should be removed. Basically anything that's an editor dropping or .patch or TAGS file or similar is a local workflow thing and should be dealt with by setting up a global ignorefile in your local git config. The only things in the .gitignore in the public repo should be files which QEMU's build process itself creates.

But I know not everybody agrees with this, which is why all this stuff is in the .gitignore :-)

thanks
-- PMM

#2 lore raw
Quoted 11 lines · Peter Maydell

Personally I think a lot of the random rubbish in our .gitignore is bogus and should be removed. Basically anything that's an editor dropping or .patch or TAGS file or similar is a local workflow thing and should be dealt with by setting up a global ignorefile in your local git config. The only things in the .gitignore in the public repo should be files which QEMU's build process itself creates.

But I know not everybody agrees with this, which is why all this stuff is in the .gitignore :-)

I'm one of the few who completely agrees, there's no place for various random rubbery in there, only things which are really generated during build should be there.

I'd really love to remove all the cruft. But who else disagrees?

Thanks,

/mjt

#3 lore raw
Quoted 13 lines · Michael Tokarev
Quoted 11 lines · Peter Maydell

Personally I think a lot of the random rubbish in our .gitignore is bogus and should be removed. Basically anything that's an editor dropping or .patch or TAGS file or similar is a local workflow thing and should be dealt with by setting up a global ignorefile in your local git config. The only things in the .gitignore in the public repo should be files which QEMU's build process itself creates.

But I know not everybody agrees with this, which is why all this stuff is in the .gitignore :-)

Quoted 6 lines

I'm one of the few who completely agrees, there's no place for various random rubbery in there, only things which are really generated during build should be there.

I'd really love to remove all the cruft. But who else disagrees?

I agree that .gitignore should list only files produced by the build process. Anything else can be added to a global ignore file (which I haven't heard of before, but it probably does exist :)), *or* to

.git/info/exclude

(recommended by Eric Blake to me some months back)

This file is not tracked like .gitignore, but it doesn't need tracking.

Laszlo

#4 lore raw
In reply to Michael Tokarev
Quoted 6 lines · 在 2013-06-06四的 01:16 +0400,Michael Tokarev写道:

This partially reverts:

commit 082369e62c5bbaba89f173c2b803bc24115bb111
Author: liguang <[email protected]>
Date: Fri Mar 22 16:44:13 2013 +0800

Quoted 7 lines

gitignore: ignore more files

I'm not sure how this went in. The thing is that
ignoring *.patch, in my opinion, is just wrong.
Especially for downstreams who apply patches for
real.

ignore *.patch is convenient in my opinion, you can change if it bothered someone else.

thanks!

Quoted 17 lines
---
 .gitignore |    1 -
 1 file changed, 1 deletion(-)
.gitignore +0 -1
index 64e9466..0fe114d 100644
@@ -82,7 +82,6 @@ fsdev/virtfs-proxy-helper.pod
 *.swp
 *.orig
 .pc
-*.patch
 *.gcda
 *.gcno
 patches