Add missing license headers Some implementation files were missing the license headers. This commit adds them.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105
diff --git a/src/attr.c b/src/attr.c
index 999f413..fe3ccf4 100644
--- a/src/attr.c
+++ b/src/attr.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (C) the libgit2 contributors. All rights reserved.
+ *
+ * This file is part of libgit2, distributed under the GNU GPL v2 with
+ * a Linking Exception. For full terms see the included COPYING file.
+ */
+
#include "common.h"
#include "repository.h"
#include "sysdir.h"
diff --git a/src/attr_file.c b/src/attr_file.c
index e30ea5e..0ac4c9c 100644
--- a/src/attr_file.c
+++ b/src/attr_file.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (C) the libgit2 contributors. All rights reserved.
+ *
+ * This file is part of libgit2, distributed under the GNU GPL v2 with
+ * a Linking Exception. For full terms see the included COPYING file.
+ */
+
#include "common.h"
#include "repository.h"
#include "filebuf.h"
diff --git a/src/attrcache.c b/src/attrcache.c
index 5416189..d516bb4 100644
--- a/src/attrcache.c
+++ b/src/attrcache.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (C) the libgit2 contributors. All rights reserved.
+ *
+ * This file is part of libgit2, distributed under the GNU GPL v2 with
+ * a Linking Exception. For full terms see the included COPYING file.
+ */
+
#include "common.h"
#include "repository.h"
#include "attr_file.h"
diff --git a/src/ignore.c b/src/ignore.c
index c324d4d..6496dd1 100644
--- a/src/ignore.c
+++ b/src/ignore.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (C) the libgit2 contributors. All rights reserved.
+ *
+ * This file is part of libgit2, distributed under the GNU GPL v2 with
+ * a Linking Exception. For full terms see the included COPYING file.
+ */
+
#include "git2/ignore.h"
#include "common.h"
#include "ignore.h"
diff --git a/src/patch.c b/src/patch.c
index 9b7c9c6..519cbb8 100644
--- a/src/patch.c
+++ b/src/patch.c
@@ -1,3 +1,10 @@
+/*
+* Copyright (C) the libgit2 contributors. All rights reserved.
+*
+* This file is part of libgit2, distributed under the GNU GPL v2 with
+* a Linking Exception. For full terms see the included COPYING file.
+*/
+
#include "git2/patch.h"
#include "diff.h"
#include "patch.h"
diff --git a/src/pool.c b/src/pool.c
index b4fc50f..57ce46e 100644
--- a/src/pool.c
+++ b/src/pool.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (C) the libgit2 contributors. All rights reserved.
+ *
+ * This file is part of libgit2, distributed under the GNU GPL v2 with
+ * a Linking Exception. For full terms see the included COPYING file.
+ */
+
#include "pool.h"
#include "posix.h"
#ifndef GIT_WIN32
diff --git a/src/sortedcache.c b/src/sortedcache.c
index cc322d4..76672d9 100644
--- a/src/sortedcache.c
+++ b/src/sortedcache.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (C) the libgit2 contributors. All rights reserved.
+ *
+ * This file is part of libgit2, distributed under the GNU GPL v2 with
+ * a Linking Exception. For full terms see the included COPYING file.
+ */
+
#include "sortedcache.h"
int git_sortedcache_new(