.gitignore makes git ignore gen.cpp, Makefiles and patches #13590

issue Shtutnik opened this issue on July 3, 2018
  1. Shtutnik commented at 3:05 PM on July 3, 2018: none

    Hi, I'm wondering if this is on purpose or not, .gitignore has these lines in it: 39: src/univalue/gen 64: *.patch 82: Makefile

    which makes git ignore all Makefiles, patch files and specifically src/univalue/gen/gen.cpp

    Is this intentional?

  2. fanquake added the label Questions and Help on Jul 3, 2018
  3. fanquake commented at 3:54 PM on July 3, 2018: member

    @Shtutnik The .gitignore file is correct, what is the problem you are you having?

  4. fanquake commented at 7:16 AM on July 5, 2018: member

    Closing until more info is available.

  5. fanquake closed this on Jul 5, 2018

  6. Shtutnik commented at 7:48 AM on July 8, 2018: none

    Apologizes for taking time to answer. I stumbled into this when forking the code outside of github. I cloned the project, then I removed the .git folder, then I added all files into a new repository I created elsewhere. Of course, there is a better way to do this. Nonetheless, this is where I noticed that there where missing files from the new repository and then I realized that this happened because of the contents of .gitignore. If this is intentional, then please disregard this issue. Still, I am a bit confused though - if someone makes changes to the mentioned files, they won't be updated (included in a commit). Are they not meant to be updated? Are the Makefiles generated elsewhere somehow? Many thanks for taking your time to address this, I really appreciate it!

  7. sipa commented at 7:52 AM on July 8, 2018: member

    These files are automatically generated at build time. Making changes to them would be overwriiten anyway.

  8. Shtutnik commented at 8:22 AM on July 8, 2018: none

    Oh, ok. Thank you. That makes sense. In build process you mean running the autogen script? And also, will it create the Makefile in the depends folder as well? I didn't see a Makefile.am or Makefile.in there, that's why I am asking. Probably I'm missing something. Sorry for the "noob" questions :)

  9. Shtutnik commented at 1:27 PM on July 8, 2018: none

    I just confirmed that running the autogen script won't generate the Makefile in the depends folder. The same goes for the gen.cpp file, even after running the autogen script in the univalue folder. What am I missing?

  10. MarcoFalke locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-26 06:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me