aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-04-05 11:07:43 +0800
committerRunxi Yu <me@runxiyu.org>2025-04-05 11:07:43 +0800
commit9fc3f5cfa20ccdfdfcaa6a4b5f9c700ba1f8c0c2 (patch)
tree2c5712a7b0443a12ea13df55627e51a08b2ebdcc
parentgit2d: Separate the files a bit (diff)
downloadforge-9fc3f5cfa20ccdfdfcaa6a4b5f9c700ba1f8c0c2.tar.gz
forge-9fc3f5cfa20ccdfdfcaa6a4b5f9c700ba1f8c0c2.tar.zst
forge-9fc3f5cfa20ccdfdfcaa6a4b5f9c700ba1f8c0c2.zip
git2d: Add license headers where missing
-rw-r--r--git2d/rw.c5
-rw-r--r--git2d/session.c5
-rw-r--r--git2d/utf8.c5
-rw-r--r--git2d/x.h5
4 files changed, 20 insertions, 0 deletions
diff --git a/git2d/rw.c b/git2d/rw.c
index a3e40e1..4a227f1 100644
--- a/git2d/rw.c
+++ b/git2d/rw.c
@@ -1,3 +1,8 @@
+/*-
+ * SPDX-License-Identifier: AGPL-3.0-only
+ * SPDX-FileCopyrightText: Copyright (c) 2025 Runxi Yu <https://runxiyu.org>
+ */
+
#include "x.h"
bare_error
diff --git a/git2d/session.c b/git2d/session.c
index a0d98ee..d8d7812 100644
--- a/git2d/session.c
+++ b/git2d/session.c
@@ -1,3 +1,8 @@
+/*-
+ * SPDX-License-Identifier: AGPL-3.0-only
+ * SPDX-FileCopyrightText: Copyright (c) 2025 Runxi Yu <https://runxiyu.org>
+ */
+
#include "x.h"
void *
diff --git a/git2d/utf8.c b/git2d/utf8.c
index 2937cb6..27c7a22 100644
--- a/git2d/utf8.c
+++ b/git2d/utf8.c
@@ -1,3 +1,8 @@
+/*-
+ * SPDX-License-Identifier: AGPL-3.0-only
+ * SPDX-FileCopyrightText: Copyright (c) 2025 Runxi Yu <https://runxiyu.org>
+ */
+
#include "utf8.h"
extern inline void *utf8_decode(void *buf, uint32_t *c, int *e);
diff --git a/git2d/x.h b/git2d/x.h
index 4be5186..92f7414 100644
--- a/git2d/x.h
+++ b/git2d/x.h
@@ -1,3 +1,8 @@
+/*-
+ * SPDX-License-Identifier: AGPL-3.0-only
+ * SPDX-FileCopyrightText: Copyright (c) 2025 Runxi Yu <https://runxiyu.org>
+ */
+
#include <err.h>
#include <errno.h>
#include <git2.h>