{"thread":{"id":"31442","subject":"Does or could git handle file licensing information?","startedAt":"2012-09-05T09:17:13Z","lastAt":"2012-09-05T10:51:51Z","messageCount":2,"participants":["Yohann Ferreira","Ævar Arnfjörð Bjarmason"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"198364","messageId":"CACBZZX5DOgfwot=Murke4i4=QgUPiLJFSOicYRX_DZu1-3-_ZQ@mail.gmail.com","threadId":"31442","inReplyTo":"201209051251.51203.yohann.ferreira@orange.fr","subject":"Re: Does or could git handle file licensing information?","fromName":"Ævar Arnfjörð Bjarmason","fromEmail":"avarab@gmail.com","sentAt":"2012-09-05T09:17:13Z","receivedAt":"2012-09-05T09:17:13Z","isPatch":false,"sender":{"key":"avarab@gmail.com","avatar":"https://avatars.githubusercontent.com/u/45301?v=4"},"body":"On Wed, Sep 5, 2012 at 12:51 PM, Yohann Ferreira\n<yohann.ferreira@orange.fr> wrote:\n> As a day-to-day hard git user ;), I also have to manage files with different\n> licenses I need to track.\n> As git handles all those files in a very smart way, I wondered whether git\n> could also handle that information, at least somehow.\n\nSay you have files like:\n\n    main.c\n    imglib.c\n    config.c\n\nWhy not just have these files:\n\n    license-info/GPL\n    license-info/SOME-OTHER-LICENSE\n\nWhich would contain, respectively:\n\n    main.c\n    config.c\n\nAnd:\n\n    imglib.c\n\nThen just have a script, maybe add it as a hook on your server before\nit accepts a push which ensures that all files currently in the tree\nare listed in those license-info/* files.\n\nYou could also just add a license header to each of these files, and\nhave a script that ensures that everything has such a header. I think\nthe Debian project has such a script that you could adapt.\n\nGit just tracks files, so just do this in some file-based manner and\nyou'll be fine.\n"},{"id":"198363","messageId":"201209051251.51203.yohann.ferreira@orange.fr","threadId":"31442","inReplyTo":null,"subject":"Does or could git handle file licensing information?","fromName":"Yohann Ferreira","fromEmail":"yohann.ferreira@orange.fr","sentAt":"2012-09-05T10:51:51Z","receivedAt":"2012-09-05T10:51:51Z","isPatch":false,"sender":{"key":"yohann.ferreira@orange.fr","avatar":null},"body":"Hi everyone,\n\nI don't know whether this question has already been raised, but everything is \nin the title.\n\nAs a day-to-day hard git user ;), I also have to manage files with different \nlicenses I need to track.\nAs git handles all those files in a very smart way, I wondered whether git \ncould also handle that information, at least somehow.\n\nThat would greatly make my day, and I do think several other people could\nhave the same need, too.\n\nDo you think this might be relevant?\n\nBest regards,\n\nYohann\n"}]}