From f591833095ad9a3bbff42c76531131f7ec6a2954 Mon Sep 17 00:00:00 2001 From: Vicent Marti Date: Mon, 6 Dec 2010 23:08:31 +0200 Subject: [PATCH] Add license file to all public headers Yes, the public headers do need our license. Signed-off-by: Vicent Marti --- src/git2/blob.h | 26 +++++++++++++++++++++++++- src/git2/commit.h | 26 +++++++++++++++++++++++++- src/git2/common.h | 26 +++++++++++++++++++++++++- src/git2/errors.h | 26 +++++++++++++++++++++++++- src/git2/index.h | 26 +++++++++++++++++++++++++- src/git2/object.h | 26 +++++++++++++++++++++++++- src/git2/odb.h | 26 +++++++++++++++++++++++++- src/git2/odb_backend.h | 33 ++++++++++++++++++++++++++++++++- src/git2/oid.h | 26 +++++++++++++++++++++++++- src/git2/repository.h | 26 +++++++++++++++++++++++++- src/git2/revwalk.h | 26 +++++++++++++++++++++++++- src/git2/tag.h | 26 +++++++++++++++++++++++++- src/git2/thread-utils.h | 24 ++++++++++++++++++++++++ src/git2/tree.h | 26 +++++++++++++++++++++++++- src/git2/types.h | 26 +++++++++++++++++++++++++- src/git2/zlib.h | 26 +++++++++++++++++++++++++- 16 files changed, 406 insertions(+), 15 deletions(-) diff --git a/src/git2/blob.h b/src/git2/blob.h index f94b1f963..9c7b5a2a9 100644 --- a/src/git2/blob.h +++ b/src/git2/blob.h @@ -1,3 +1,27 @@ +/* + * This file is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License, version 2, + * as published by the Free Software Foundation. + * + * In addition to the permissions in the GNU General Public License, + * the authors give you unlimited permission to link the compiled + * version of this file into combinations with other programs, + * and to distribute those combinations without any restriction + * coming from the use of this file. (The General Public License + * restrictions do apply in other respects; for example, they cover + * modification of the file, and distribution when not linked into + * a combined executable.) + * + * This file is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; see the file COPYING. If not, write to + * the Free Software Foundation, 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. + */ #ifndef INCLUDE_git_blob_h__ #define INCLUDE_git_blob_h__ @@ -6,7 +30,7 @@ #include "oid.h" /** - * @file git/blob.h + * @file git2/blob.h * @brief Git blob load and write routines * @defgroup git_blob Git blob load and write routines * @ingroup Git diff --git a/src/git2/commit.h b/src/git2/commit.h index 54ecb622e..728679758 100644 --- a/src/git2/commit.h +++ b/src/git2/commit.h @@ -1,3 +1,27 @@ +/* + * This file is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License, version 2, + * as published by the Free Software Foundation. + * + * In addition to the permissions in the GNU General Public License, + * the authors give you unlimited permission to link the compiled + * version of this file into combinations with other programs, + * and to distribute those combinations without any restriction + * coming from the use of this file. (The General Public License + * restrictions do apply in other respects; for example, they cover + * modification of the file, and distribution when not linked into + * a combined executable.) + * + * This file is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; see the file COPYING. If not, write to + * the Free Software Foundation, 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. + */ #ifndef INCLUDE_git_commit_h__ #define INCLUDE_git_commit_h__ @@ -6,7 +30,7 @@ #include "oid.h" /** - * @file git/commit.h + * @file git2/commit.h * @brief Git commit parsing, formatting routines * @defgroup git_commit Git commit parsing, formatting routines * @ingroup Git diff --git a/src/git2/common.h b/src/git2/common.h index 0a7de41ea..b819f0549 100644 --- a/src/git2/common.h +++ b/src/git2/common.h @@ -1,3 +1,27 @@ +/* + * This file is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License, version 2, + * as published by the Free Software Foundation. + * + * In addition to the permissions in the GNU General Public License, + * the authors give you unlimited permission to link the compiled + * version of this file into combinations with other programs, + * and to distribute those combinations without any restriction + * coming from the use of this file. (The General Public License + * restrictions do apply in other respects; for example, they cover + * modification of the file, and distribution when not linked into + * a combined executable.) + * + * This file is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; see the file COPYING. If not, write to + * the Free Software Foundation, 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. + */ #ifndef INCLUDE_git_common_h__ #define INCLUDE_git_common_h__ @@ -50,7 +74,7 @@ #endif /** - * @file git/common.h + * @file git2/common.h * @brief Git common platform definitions * @defgroup git_common Git common platform definitions * @ingroup Git diff --git a/src/git2/errors.h b/src/git2/errors.h index f4720bebe..98bce4857 100644 --- a/src/git2/errors.h +++ b/src/git2/errors.h @@ -1,8 +1,32 @@ +/* + * This file is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License, version 2, + * as published by the Free Software Foundation. + * + * In addition to the permissions in the GNU General Public License, + * the authors give you unlimited permission to link the compiled + * version of this file into combinations with other programs, + * and to distribute those combinations without any restriction + * coming from the use of this file. (The General Public License + * restrictions do apply in other respects; for example, they cover + * modification of the file, and distribution when not linked into + * a combined executable.) + * + * This file is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; see the file COPYING. If not, write to + * the Free Software Foundation, 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. + */ #ifndef INCLUDE_git_errors_h__ #define INCLUDE_git_errors_h__ /** - * @file git/errors.h + * @file git2/errors.h * @brief Git error handling routines and variables * @ingroup Git * @{ diff --git a/src/git2/index.h b/src/git2/index.h index 8bdced6a3..f0cae09b1 100644 --- a/src/git2/index.h +++ b/src/git2/index.h @@ -1,3 +1,27 @@ +/* + * This file is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License, version 2, + * as published by the Free Software Foundation. + * + * In addition to the permissions in the GNU General Public License, + * the authors give you unlimited permission to link the compiled + * version of this file into combinations with other programs, + * and to distribute those combinations without any restriction + * coming from the use of this file. (The General Public License + * restrictions do apply in other respects; for example, they cover + * modification of the file, and distribution when not linked into + * a combined executable.) + * + * This file is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; see the file COPYING. If not, write to + * the Free Software Foundation, 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. + */ #ifndef INCLUDE_git_index_h__ #define INCLUDE_git_index_h__ @@ -5,7 +29,7 @@ #include "types.h" /** - * @file git/index.h + * @file git2/index.h * @brief Git index parsing and manipulation routines * @defgroup git_index Git index parsing and manipulation routines * @ingroup Git diff --git a/src/git2/object.h b/src/git2/object.h index 516591729..f316c5d62 100644 --- a/src/git2/object.h +++ b/src/git2/object.h @@ -1,3 +1,27 @@ +/* + * This file is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License, version 2, + * as published by the Free Software Foundation. + * + * In addition to the permissions in the GNU General Public License, + * the authors give you unlimited permission to link the compiled + * version of this file into combinations with other programs, + * and to distribute those combinations without any restriction + * coming from the use of this file. (The General Public License + * restrictions do apply in other respects; for example, they cover + * modification of the file, and distribution when not linked into + * a combined executable.) + * + * This file is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; see the file COPYING. If not, write to + * the Free Software Foundation, 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. + */ #ifndef INCLUDE_git_object_h__ #define INCLUDE_git_object_h__ @@ -6,7 +30,7 @@ #include "oid.h" /** - * @file git/object.h + * @file git2/object.h * @brief Git revision object management routines * @defgroup git_object Git revision object management routines * @ingroup Git diff --git a/src/git2/odb.h b/src/git2/odb.h index 6be6ea2cf..2f2741135 100644 --- a/src/git2/odb.h +++ b/src/git2/odb.h @@ -1,3 +1,27 @@ +/* + * This file is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License, version 2, + * as published by the Free Software Foundation. + * + * In addition to the permissions in the GNU General Public License, + * the authors give you unlimited permission to link the compiled + * version of this file into combinations with other programs, + * and to distribute those combinations without any restriction + * coming from the use of this file. (The General Public License + * restrictions do apply in other respects; for example, they cover + * modification of the file, and distribution when not linked into + * a combined executable.) + * + * This file is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; see the file COPYING. If not, write to + * the Free Software Foundation, 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. + */ #ifndef INCLUDE_git_odb_h__ #define INCLUDE_git_odb_h__ @@ -6,7 +30,7 @@ #include "oid.h" /** - * @file git/odb.h + * @file git2/odb.h * @brief Git object database routines * @defgroup git_odb Git object database routines * @ingroup Git diff --git a/src/git2/odb_backend.h b/src/git2/odb_backend.h index 747f4e97a..9c0c3ad6f 100644 --- a/src/git2/odb_backend.h +++ b/src/git2/odb_backend.h @@ -1,3 +1,27 @@ +/* + * This file is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License, version 2, + * as published by the Free Software Foundation. + * + * In addition to the permissions in the GNU General Public License, + * the authors give you unlimited permission to link the compiled + * version of this file into combinations with other programs, + * and to distribute those combinations without any restriction + * coming from the use of this file. (The General Public License + * restrictions do apply in other respects; for example, they cover + * modification of the file, and distribution when not linked into + * a combined executable.) + * + * This file is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; see the file COPYING. If not, write to + * the Free Software Foundation, 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. + */ #ifndef INCLUDE_git_odb_backend_h__ #define INCLUDE_git_odb_backend_h__ @@ -5,8 +29,16 @@ #include "types.h" #include "oid.h" +/** + * @file git2/backend.h + * @brief Git custom backend functions + * @defgroup git_backend Git custom backend API + * @ingroup Git + * @{ + */ GIT_BEGIN_DECL +/** An instance for a custom backend */ struct git_odb_backend { git_odb *odb; @@ -32,7 +64,6 @@ struct git_odb_backend { const git_oid *); void (* free)(struct git_odb_backend *); - }; GIT_END_DECL diff --git a/src/git2/oid.h b/src/git2/oid.h index f0e39da68..7c9534290 100644 --- a/src/git2/oid.h +++ b/src/git2/oid.h @@ -1,8 +1,32 @@ +/* + * This file is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License, version 2, + * as published by the Free Software Foundation. + * + * In addition to the permissions in the GNU General Public License, + * the authors give you unlimited permission to link the compiled + * version of this file into combinations with other programs, + * and to distribute those combinations without any restriction + * coming from the use of this file. (The General Public License + * restrictions do apply in other respects; for example, they cover + * modification of the file, and distribution when not linked into + * a combined executable.) + * + * This file is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; see the file COPYING. If not, write to + * the Free Software Foundation, 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. + */ #ifndef INCLUDE_git_oid_h__ #define INCLUDE_git_oid_h__ /** - * @file git/oid.h + * @file git2/oid.h * @brief Git object id routines * @defgroup git_oid Git object id routines * @ingroup Git diff --git a/src/git2/repository.h b/src/git2/repository.h index 683e78fc9..24b411b64 100644 --- a/src/git2/repository.h +++ b/src/git2/repository.h @@ -1,3 +1,27 @@ +/* + * This file is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License, version 2, + * as published by the Free Software Foundation. + * + * In addition to the permissions in the GNU General Public License, + * the authors give you unlimited permission to link the compiled + * version of this file into combinations with other programs, + * and to distribute those combinations without any restriction + * coming from the use of this file. (The General Public License + * restrictions do apply in other respects; for example, they cover + * modification of the file, and distribution when not linked into + * a combined executable.) + * + * This file is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; see the file COPYING. If not, write to + * the Free Software Foundation, 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. + */ #ifndef INCLUDE_git_repository_h__ #define INCLUDE_git_repository_h__ @@ -6,7 +30,7 @@ #include "oid.h" /** - * @file git/repository.h + * @file git2/repository.h * @brief Git repository management routines * @defgroup git_repository Git repository management routines * @ingroup Git diff --git a/src/git2/revwalk.h b/src/git2/revwalk.h index 6a761088a..960039a39 100644 --- a/src/git2/revwalk.h +++ b/src/git2/revwalk.h @@ -1,3 +1,27 @@ +/* + * This file is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License, version 2, + * as published by the Free Software Foundation. + * + * In addition to the permissions in the GNU General Public License, + * the authors give you unlimited permission to link the compiled + * version of this file into combinations with other programs, + * and to distribute those combinations without any restriction + * coming from the use of this file. (The General Public License + * restrictions do apply in other respects; for example, they cover + * modification of the file, and distribution when not linked into + * a combined executable.) + * + * This file is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; see the file COPYING. If not, write to + * the Free Software Foundation, 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. + */ #ifndef INCLUDE_git_revwalk_h__ #define INCLUDE_git_revwalk_h__ @@ -5,7 +29,7 @@ #include "types.h" /** - * @file git/revwalk.h + * @file git2/revwalk.h * @brief Git revision traversal routines * @defgroup git_revwalk Git revision traversal routines * @ingroup Git diff --git a/src/git2/tag.h b/src/git2/tag.h index d57009870..39b45ac74 100644 --- a/src/git2/tag.h +++ b/src/git2/tag.h @@ -1,3 +1,27 @@ +/* + * This file is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License, version 2, + * as published by the Free Software Foundation. + * + * In addition to the permissions in the GNU General Public License, + * the authors give you unlimited permission to link the compiled + * version of this file into combinations with other programs, + * and to distribute those combinations without any restriction + * coming from the use of this file. (The General Public License + * restrictions do apply in other respects; for example, they cover + * modification of the file, and distribution when not linked into + * a combined executable.) + * + * This file is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; see the file COPYING. If not, write to + * the Free Software Foundation, 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. + */ #ifndef INCLUDE_git_tag_h__ #define INCLUDE_git_tag_h__ @@ -6,7 +30,7 @@ #include "oid.h" /** - * @file git/tag.h + * @file git2/tag.h * @brief Git tag parsing routines * @defgroup git_tag Git tag management * @ingroup Git diff --git a/src/git2/thread-utils.h b/src/git2/thread-utils.h index 241514f3a..c45a76e95 100644 --- a/src/git2/thread-utils.h +++ b/src/git2/thread-utils.h @@ -1,3 +1,27 @@ +/* + * This file is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License, version 2, + * as published by the Free Software Foundation. + * + * In addition to the permissions in the GNU General Public License, + * the authors give you unlimited permission to link the compiled + * version of this file into combinations with other programs, + * and to distribute those combinations without any restriction + * coming from the use of this file. (The General Public License + * restrictions do apply in other respects; for example, they cover + * modification of the file, and distribution when not linked into + * a combined executable.) + * + * This file is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; see the file COPYING. If not, write to + * the Free Software Foundation, 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. + */ #ifndef INCLUDE_git_thread_utils_h__ #define INCLUDE_git_thread_utils_h__ diff --git a/src/git2/tree.h b/src/git2/tree.h index d935169d8..b2f6905ae 100644 --- a/src/git2/tree.h +++ b/src/git2/tree.h @@ -1,3 +1,27 @@ +/* + * This file is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License, version 2, + * as published by the Free Software Foundation. + * + * In addition to the permissions in the GNU General Public License, + * the authors give you unlimited permission to link the compiled + * version of this file into combinations with other programs, + * and to distribute those combinations without any restriction + * coming from the use of this file. (The General Public License + * restrictions do apply in other respects; for example, they cover + * modification of the file, and distribution when not linked into + * a combined executable.) + * + * This file is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; see the file COPYING. If not, write to + * the Free Software Foundation, 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. + */ #ifndef INCLUDE_git_tree_h__ #define INCLUDE_git_tree_h__ @@ -6,7 +30,7 @@ #include "oid.h" /** - * @file git/tree.h + * @file git2/tree.h * @brief Git tree parsing, loading routines * @defgroup git_tree Git tree parsing, loading routines * @ingroup Git diff --git a/src/git2/types.h b/src/git2/types.h index 18684e13d..22fecef3f 100644 --- a/src/git2/types.h +++ b/src/git2/types.h @@ -1,8 +1,32 @@ +/* + * This file is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License, version 2, + * as published by the Free Software Foundation. + * + * In addition to the permissions in the GNU General Public License, + * the authors give you unlimited permission to link the compiled + * version of this file into combinations with other programs, + * and to distribute those combinations without any restriction + * coming from the use of this file. (The General Public License + * restrictions do apply in other respects; for example, they cover + * modification of the file, and distribution when not linked into + * a combined executable.) + * + * This file is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; see the file COPYING. If not, write to + * the Free Software Foundation, 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. + */ #ifndef INCLUDE_git_types_h__ #define INCLUDE_git_types_h__ /** - * @file git/types.h + * @file git2/types.h * @brief libgit2 base types * @ingroup Git * @{ diff --git a/src/git2/zlib.h b/src/git2/zlib.h index b68db9bc1..493566340 100644 --- a/src/git2/zlib.h +++ b/src/git2/zlib.h @@ -1,10 +1,34 @@ +/* + * This file is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License, version 2, + * as published by the Free Software Foundation. + * + * In addition to the permissions in the GNU General Public License, + * the authors give you unlimited permission to link the compiled + * version of this file into combinations with other programs, + * and to distribute those combinations without any restriction + * coming from the use of this file. (The General Public License + * restrictions do apply in other respects; for example, they cover + * modification of the file, and distribution when not linked into + * a combined executable.) + * + * This file is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; see the file COPYING. If not, write to + * the Free Software Foundation, 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. + */ #ifndef INCLUDE_git_zlib_h__ #define INCLUDE_git_zlib_h__ #include /** - * @file git/zlib.h + * @file git2/zlib.h * @brief Git data compression routines * @defgroup git_zlib Git data compression routines * @ingroup Git -- 2.39.5