git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: Does or could git handle file licensing information?
  2012-09-05 10:51 Does or could git handle file licensing information? Yohann Ferreira
@ 2012-09-05  9:17 ` Ævar Arnfjörð Bjarmason
  0 siblings, 0 replies; 2+ messages in thread
From: Ævar Arnfjörð Bjarmason @ 2012-09-05  9:17 UTC (permalink / raw)
  To: Yohann Ferreira; +Cc: git

On Wed, Sep 5, 2012 at 12:51 PM, Yohann Ferreira
<yohann.ferreira@orange.fr> wrote:
> As a day-to-day hard git user ;), I also have to manage files with different
> licenses I need to track.
> As git handles all those files in a very smart way, I wondered whether git
> could also handle that information, at least somehow.

Say you have files like:

    main.c
    imglib.c
    config.c

Why not just have these files:

    license-info/GPL
    license-info/SOME-OTHER-LICENSE

Which would contain, respectively:

    main.c
    config.c

And:

    imglib.c

Then just have a script, maybe add it as a hook on your server before
it accepts a push which ensures that all files currently in the tree
are listed in those license-info/* files.

You could also just add a license header to each of these files, and
have a script that ensures that everything has such a header. I think
the Debian project has such a script that you could adapt.

Git just tracks files, so just do this in some file-based manner and
you'll be fine.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Does or could git handle file licensing information?
@ 2012-09-05 10:51 Yohann Ferreira
  2012-09-05  9:17 ` Ævar Arnfjörð Bjarmason
  0 siblings, 1 reply; 2+ messages in thread
From: Yohann Ferreira @ 2012-09-05 10:51 UTC (permalink / raw)
  To: git

Hi everyone,

I don't know whether this question has already been raised, but everything is 
in the title.

As a day-to-day hard git user ;), I also have to manage files with different 
licenses I need to track.
As git handles all those files in a very smart way, I wondered whether git 
could also handle that information, at least somehow.

That would greatly make my day, and I do think several other people could
have the same need, too.

Do you think this might be relevant?

Best regards,

Yohann

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-09-05  9:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-05 10:51 Does or could git handle file licensing information? Yohann Ferreira
2012-09-05  9:17 ` Ævar Arnfjörð Bjarmason

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).