Replace copyright topmatter in example files
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 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276
diff --git a/examples/add.c b/examples/add.c
index 999a41e..336596b 100644
--- a/examples/add.c
+++ b/examples/add.c
@@ -1,8 +1,15 @@
/*
- * Copyright (C) the libgit2 contributors. All rights reserved.
+ * libgit2 "add" example - shows how to modify the index
*
- * This file is part of libgit2, distributed under the GNU GPL v2 with
- * a Linking Exception. For full terms see the included COPYING file.
+ * Written by the libgit2 contributors
+ *
+ * To the extent possible under law, the author(s) have dedicated all copyright
+ * and related and neighboring rights to this software to the public domain
+ * worldwide. This software is distributed without any warranty.
+ *
+ * You should have received a copy of the CC0 Public Domain Dedication along
+ * with this software. If not, see
+ * <http://creativecommons.org/publicdomain/zero/1.0/>.
*/
#include "common.h"
diff --git a/examples/cat-file.c b/examples/cat-file.c
index 5e54762..fa6add0 100644
--- a/examples/cat-file.c
+++ b/examples/cat-file.c
@@ -1,8 +1,15 @@
/*
- * Copyright (C) the libgit2 contributors. All rights reserved.
+ * libgit2 "cat-file" example - shows how to print data from the ODB
*
- * This file is part of libgit2, distributed under the GNU GPL v2 with
- * a Linking Exception. For full terms see the included COPYING file.
+ * Written by the libgit2 contributors
+ *
+ * To the extent possible under law, the author(s) have dedicated all copyright
+ * and related and neighboring rights to this software to the public domain
+ * worldwide. This software is distributed without any warranty.
+ *
+ * You should have received a copy of the CC0 Public Domain Dedication along
+ * with this software. If not, see
+ * <http://creativecommons.org/publicdomain/zero/1.0/>.
*/
#include "common.h"
diff --git a/examples/common.c b/examples/common.c
index 5972bc5..12dbccf 100644
--- a/examples/common.c
+++ b/examples/common.c
@@ -1,8 +1,15 @@
/*
- * Copyright (C) the libgit2 contributors. All rights reserved.
+ * Utilities library for libgit2 examples
*
- * This file is part of libgit2, distributed under the GNU GPL v2 with
- * a Linking Exception. For full terms see the included COPYING file.
+ * Written by the libgit2 contributors
+ *
+ * To the extent possible under law, the author(s) have dedicated all copyright
+ * and related and neighboring rights to this software to the public domain
+ * worldwide. This software is distributed without any warranty.
+ *
+ * You should have received a copy of the CC0 Public Domain Dedication along
+ * with this software. If not, see
+ * <http://creativecommons.org/publicdomain/zero/1.0/>.
*/
#include "common.h"
diff --git a/examples/common.h b/examples/common.h
index 5ffc9c8..2fd7d57 100644
--- a/examples/common.h
+++ b/examples/common.h
@@ -1,8 +1,15 @@
/*
- * Copyright (C) the libgit2 contributors. All rights reserved.
+ * Utilities library for libgit2 examples
*
- * This file is part of libgit2, distributed under the GNU GPL v2 with
- * a Linking Exception. For full terms see the included COPYING file.
+ * Written by the libgit2 contributors
+ *
+ * To the extent possible under law, the author(s) have dedicated all copyright
+ * and related and neighboring rights to this software to the public domain
+ * worldwide. This software is distributed without any warranty.
+ *
+ * You should have received a copy of the CC0 Public Domain Dedication along
+ * with this software. If not, see
+ * <http://creativecommons.org/publicdomain/zero/1.0/>.
*/
#include <stdio.h>
diff --git a/examples/diff.c b/examples/diff.c
index b141564..daf5d70 100644
--- a/examples/diff.c
+++ b/examples/diff.c
@@ -1,8 +1,15 @@
/*
- * Copyright (C) the libgit2 contributors. All rights reserved.
+ * libgit2 "diff" example - shows how to use the diff API
*
- * This file is part of libgit2, distributed under the GNU GPL v2 with
- * a Linking Exception. For full terms see the included COPYING file.
+ * Written by the libgit2 contributors
+ *
+ * To the extent possible under law, the author(s) have dedicated all copyright
+ * and related and neighboring rights to this software to the public domain
+ * worldwide. This software is distributed without any warranty.
+ *
+ * You should have received a copy of the CC0 Public Domain Dedication along
+ * with this software. If not, see
+ * <http://creativecommons.org/publicdomain/zero/1.0/>.
*/
#include "common.h"
diff --git a/examples/general.c b/examples/general.c
index d7a5847..f23dccb 100644
--- a/examples/general.c
+++ b/examples/general.c
@@ -1,3 +1,17 @@
+/*
+ * libgit2 "general" example - shows basic libgit2 concepts
+ *
+ * Written by the libgit2 contributors
+ *
+ * To the extent possible under law, the author(s) have dedicated all copyright
+ * and related and neighboring rights to this software to the public domain
+ * worldwide. This software is distributed without any warranty.
+ *
+ * You should have received a copy of the CC0 Public Domain Dedication along
+ * with this software. If not, see
+ * <http://creativecommons.org/publicdomain/zero/1.0/>.
+ */
+
// [**libgit2**][lg] is a portable, pure C implementation of the Git core
// methods provided as a re-entrant linkable library with a solid API,
// allowing you to write native speed custom Git applications in any
diff --git a/examples/init.c b/examples/init.c
index 1c37125..0e823ab 100644
--- a/examples/init.c
+++ b/examples/init.c
@@ -1,8 +1,15 @@
/*
- * Copyright (C) the libgit2 contributors. All rights reserved.
+ * libgit2 "init" example - shows how to initialize a new repo
*
- * This file is part of libgit2, distributed under the GNU GPL v2 with
- * a Linking Exception. For full terms see the included COPYING file.
+ * Written by the libgit2 contributors
+ *
+ * To the extent possible under law, the author(s) have dedicated all copyright
+ * and related and neighboring rights to this software to the public domain
+ * worldwide. This software is distributed without any warranty.
+ *
+ * You should have received a copy of the CC0 Public Domain Dedication along
+ * with this software. If not, see
+ * <http://creativecommons.org/publicdomain/zero/1.0/>.
*/
#include "common.h"
diff --git a/examples/log.c b/examples/log.c
index a36d4c9..471c5ff 100644
--- a/examples/log.c
+++ b/examples/log.c
@@ -1,8 +1,15 @@
/*
- * Copyright (C) the libgit2 contributors. All rights reserved.
+ * libgit2 "log" example - shows how to walk history and get commit info
*
- * This file is part of libgit2, distributed under the GNU GPL v2 with
- * a Linking Exception. For full terms see the included COPYING file.
+ * Written by the libgit2 contributors
+ *
+ * To the extent possible under law, the author(s) have dedicated all copyright
+ * and related and neighboring rights to this software to the public domain
+ * worldwide. This software is distributed without any warranty.
+ *
+ * You should have received a copy of the CC0 Public Domain Dedication along
+ * with this software. If not, see
+ * <http://creativecommons.org/publicdomain/zero/1.0/>.
*/
#include "common.h"
diff --git a/examples/rev-list.c b/examples/rev-list.c
index 9330c64..5c0d751 100644
--- a/examples/rev-list.c
+++ b/examples/rev-list.c
@@ -1,8 +1,16 @@
/*
- * Copyright (C) the libgit2 contributors. All rights reserved.
+ * libgit2 "rev-list" example - shows how to transform a rev-spec into a list
+ * of commit ids
*
- * This file is part of libgit2, distributed under the GNU GPL v2 with
- * a Linking Exception. For full terms see the included COPYING file.
+ * Written by the libgit2 contributors
+ *
+ * To the extent possible under law, the author(s) have dedicated all copyright
+ * and related and neighboring rights to this software to the public domain
+ * worldwide. This software is distributed without any warranty.
+ *
+ * You should have received a copy of the CC0 Public Domain Dedication along
+ * with this software. If not, see
+ * <http://creativecommons.org/publicdomain/zero/1.0/>.
*/
#include "common.h"
diff --git a/examples/rev-parse.c b/examples/rev-parse.c
index 64a02fe..a248337 100644
--- a/examples/rev-parse.c
+++ b/examples/rev-parse.c
@@ -1,8 +1,15 @@
/*
- * Copyright (C) the libgit2 contributors. All rights reserved.
+ * libgit2 "rev-parse" example - shows how to parse revspecs
*
- * This file is part of libgit2, distributed under the GNU GPL v2 with
- * a Linking Exception. For full terms see the included COPYING file.
+ * Written by the libgit2 contributors
+ *
+ * To the extent possible under law, the author(s) have dedicated all copyright
+ * and related and neighboring rights to this software to the public domain
+ * worldwide. This software is distributed without any warranty.
+ *
+ * You should have received a copy of the CC0 Public Domain Dedication along
+ * with this software. If not, see
+ * <http://creativecommons.org/publicdomain/zero/1.0/>.
*/
#include "common.h"
diff --git a/examples/showindex.c b/examples/showindex.c
index bf85238..de463e2 100644
--- a/examples/showindex.c
+++ b/examples/showindex.c
@@ -1,8 +1,15 @@
/*
- * Copyright (C) the libgit2 contributors. All rights reserved.
+ * libgit2 "showindex" example - shows how to extract data from the index
*
- * This file is part of libgit2, distributed under the GNU GPL v2 with
- * a Linking Exception. For full terms see the included COPYING file.
+ * Written by the libgit2 contributors
+ *
+ * To the extent possible under law, the author(s) have dedicated all copyright
+ * and related and neighboring rights to this software to the public domain
+ * worldwide. This software is distributed without any warranty.
+ *
+ * You should have received a copy of the CC0 Public Domain Dedication along
+ * with this software. If not, see
+ * <http://creativecommons.org/publicdomain/zero/1.0/>.
*/
#include "common.h"
diff --git a/examples/status.c b/examples/status.c
index 459e6fa..e2e2b60 100644
--- a/examples/status.c
+++ b/examples/status.c
@@ -1,8 +1,15 @@
/*
- * Copyright (C) the libgit2 contributors. All rights reserved.
+ * libgit2 "status" example - shows how to use the status APIs
*
- * This file is part of libgit2, distributed under the GNU GPL v2 with
- * a Linking Exception. For full terms see the included COPYING file.
+ * Written by the libgit2 contributors
+ *
+ * To the extent possible under law, the author(s) have dedicated all copyright
+ * and related and neighboring rights to this software to the public domain
+ * worldwide. This software is distributed without any warranty.
+ *
+ * You should have received a copy of the CC0 Public Domain Dedication along
+ * with this software. If not, see
+ * <http://creativecommons.org/publicdomain/zero/1.0/>.
*/
#include "common.h"