It would be nice to add .src.rpm and .build to .gitignore, but then fedpkg clean does not clean them up. See https://lists.fedorahosted.org/archives/list/devel@lists.fedoraproject.org/thread/ANB6QQJTACRMYZM7RVG3FQ4AESSHZFBD/#P7UI4PWEC7NJ4WB4NJWSKQL5EBU7VI7C
It seems a mistake to have clean look at .gitignore since the purposes are somewhat orthogonal. But perhaps instead of changing the well established clean behavior we added "distclean" that removed files matched by .gitignore as well.
As far as I can tell, clean is just a passthrough to git's clean command. To get what you want, just do git clean -fdx. No need to bloat fedpkg with a wrapper command for such a trivial git operation.
git clean -fdx
Can you just use fedpkg clean -x which ignores .gitignore?
fedpkg clean -x
.gitignore
Gah, that's what I get for not reading the docs. Yes, that will do the trick fine.
Metadata Update from @orion: - Issue close_status updated to: Invalid - Issue status updated to: Closed (was: Open)