I'm writing a tool that heavily utilizes Git (without linking against parts of it, or using any of its source files in the code) through the cli interface.
I would still like to license it under the same terms as git itself, which has a little bit 'weirdly' formulated version of GPL v2: https://github.com/git/git/blob/master/COPYING
in particular the
Note that the only valid version of the GPL as far as this project is concerned is this particular version of the license (ie v2, not v2.2 or v3.x or whatever), unless explicitly otherwise stated.
HOWEVER, in order to allow a migration to GPLv3 if that seems like a good idea, I also ask that people involved with the project make their preferences known. In particular, if you trust me to make that decision, you might note so in your copyright message, ie something like
This file is licensed under the GPL v2, or a later version at the discretion of Linus.
might avoid issues. But we can also just decide to synchronize and
contact all copyright holders on record if/when the occasion arises.
Q1: for a repository that is going to be hosted on github, what's a propper way of "inheriting" this license? i.e. what should I put in the license file and what should I put in the header of each file?
I'm also a bit confused as to why most of git's source files don't contain any header about the license at all, while some just contain
/*
* Copyright (C) 2005 Junio C Hamano
*/
or (https://github.com/git/git/blob/306ee63a703ad67c54ba1209dc11dd9ea500dc1f/builtin/write-tree.c)
/*
* GIT - The information manager from hell
*
* Copyright (C) Linus Torvalds, 2005
*/
Q2: Is that the proper way of doing it? i.e do all files in that repository automatically inherit the license from the license file, no matter what's written in he file header?
Q3: There are also files that have the MIT license in the header (like https://github.com/git/git/blob/66e871b6647ffea61a77a0f82c7ef3415f1ee79c/git-p4.py) but these files still received changes after that within this repository - so does it even make sense that it has the MIT license in the header (since I'd assume if the answer to Q2 is 'yes' that file would not be available under MIT anymore)