Bläddra i källkod

Add SPDX license identifier to source files (#1453)

SPDX license identifiers help tools to identify the right licenses.
Especially detecting that the user can choose to GPL 2+ or Apache 2.0 is
difficult to detect, it can be misinterpreted that the user has to
comply with both licenses.

Fixes #1451
Jelmer Vernooij 4 månader sedan
förälder
incheckning
a8eff64288
100 ändrade filer med 113 tillägg och 0 borttagningar
  1. 2 0
      COPYING
  2. 2 0
      README.rst
  3. 1 0
      bin/dul-receive-pack
  4. 1 0
      bin/dul-upload-pack
  5. 1 0
      bin/dulwich
  6. 1 0
      devscripts/PREAMBLE.py
  7. 2 0
      devscripts/replace-preamble.sh
  8. 1 0
      dulwich/__init__.py
  9. 1 0
      dulwich/archive.py
  10. 1 0
      dulwich/bundle.py
  11. 1 0
      dulwich/cli.py
  12. 1 0
      dulwich/client.py
  13. 1 0
      dulwich/cloud/gcs.py
  14. 1 0
      dulwich/config.py
  15. 1 0
      dulwich/contrib/__init__.py
  16. 1 0
      dulwich/contrib/diffstat.py
  17. 1 0
      dulwich/contrib/paramiko_vendor.py
  18. 1 0
      dulwich/contrib/release_robot.py
  19. 1 0
      dulwich/contrib/requests_vendor.py
  20. 1 0
      dulwich/contrib/swift.py
  21. 1 0
      dulwich/credentials.py
  22. 1 0
      dulwich/diff_tree.py
  23. 1 0
      dulwich/errors.py
  24. 1 0
      dulwich/fastexport.py
  25. 1 0
      dulwich/file.py
  26. 1 0
      dulwich/graph.py
  27. 1 0
      dulwich/greenthreads.py
  28. 1 0
      dulwich/hooks.py
  29. 1 0
      dulwich/ignore.py
  30. 1 0
      dulwich/index.py
  31. 1 0
      dulwich/lfs.py
  32. 1 0
      dulwich/line_ending.py
  33. 1 0
      dulwich/log_utils.py
  34. 1 0
      dulwich/lru_cache.py
  35. 1 0
      dulwich/mailmap.py
  36. 1 0
      dulwich/object_store.py
  37. 1 0
      dulwich/objects.py
  38. 1 0
      dulwich/objectspec.py
  39. 1 0
      dulwich/pack.py
  40. 1 0
      dulwich/patch.py
  41. 1 0
      dulwich/porcelain.py
  42. 1 0
      dulwich/protocol.py
  43. 1 0
      dulwich/reflog.py
  44. 1 0
      dulwich/refs.py
  45. 1 0
      dulwich/repo.py
  46. 1 0
      dulwich/server.py
  47. 1 0
      dulwich/stash.py
  48. 1 0
      dulwich/submodule.py
  49. 1 0
      dulwich/tests/__init__.py
  50. 1 0
      dulwich/tests/test_object_store.py
  51. 1 0
      dulwich/tests/utils.py
  52. 1 0
      dulwich/walk.py
  53. 1 0
      dulwich/web.py
  54. 2 0
      examples/clone.py
  55. 2 0
      examples/config.py
  56. 2 0
      examples/diff.py
  57. 1 0
      examples/gcs.py
  58. 2 0
      examples/latest_change.py
  59. 2 0
      examples/memoryrepo.py
  60. 1 0
      examples/rename-branch.py
  61. 2 0
      fuzzing/fuzz-targets/fuzz_bundle.py
  62. 2 0
      fuzzing/fuzz-targets/fuzz_configfile.py
  63. 2 0
      fuzzing/fuzz-targets/fuzz_object_store.py
  64. 2 0
      fuzzing/fuzz-targets/fuzz_repo.py
  65. 2 0
      fuzzing/fuzz-targets/test_utils.py
  66. 1 0
      fuzzing/oss-fuzz-scripts/container-environment-bootstrap.sh
  67. 1 0
      setup.py
  68. 1 0
      tests/__init__.py
  69. 1 0
      tests/compat/__init__.py
  70. 1 0
      tests/compat/server_utils.py
  71. 1 0
      tests/compat/test_client.py
  72. 1 0
      tests/compat/test_pack.py
  73. 1 0
      tests/compat/test_patch.py
  74. 1 0
      tests/compat/test_porcelain.py
  75. 1 0
      tests/compat/test_repository.py
  76. 1 0
      tests/compat/test_server.py
  77. 1 0
      tests/compat/test_utils.py
  78. 1 0
      tests/compat/test_web.py
  79. 1 0
      tests/compat/utils.py
  80. 1 0
      tests/contrib/__init__.py
  81. 1 0
      tests/contrib/test_paramiko_vendor.py
  82. 1 0
      tests/contrib/test_release_robot.py
  83. 1 0
      tests/contrib/test_swift.py
  84. 1 0
      tests/contrib/test_swift_smoke.py
  85. 1 0
      tests/test_archive.py
  86. 1 0
      tests/test_blackbox.py
  87. 1 0
      tests/test_bundle.py
  88. 1 0
      tests/test_client.py
  89. 1 0
      tests/test_config.py
  90. 1 0
      tests/test_credentials.py
  91. 1 0
      tests/test_diff_tree.py
  92. 1 0
      tests/test_fastexport.py
  93. 1 0
      tests/test_file.py
  94. 1 0
      tests/test_grafts.py
  95. 1 0
      tests/test_graph.py
  96. 1 0
      tests/test_greenthreads.py
  97. 1 0
      tests/test_hooks.py
  98. 1 0
      tests/test_ignore.py
  99. 1 0
      tests/test_index.py
  100. 1 0
      tests/test_lfs.py

+ 2 - 0
COPYING

@@ -2,6 +2,8 @@ Dulwich may be used under the conditions of either of two licenses,
 the Apache License (version 2.0 or later) or the GNU General Public License,
 the Apache License (version 2.0 or later) or the GNU General Public License,
 version 2.0 or later.
 version 2.0 or later.
 
 
+SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
+
                                  Apache License
                                  Apache License
                            Version 2.0, January 2004
                            Version 2.0, January 2004
                         http://www.apache.org/licenses/
                         http://www.apache.org/licenses/

+ 2 - 0
README.rst

@@ -10,6 +10,8 @@ doesn't call out to git directly but instead uses pure Python.
 
 
 **License**: Apache License, version 2 or GNU General Public License, version 2 or later.
 **License**: Apache License, version 2 or GNU General Public License, version 2 or later.
 
 
+SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
+
 The project is named after the part of London that Mr. and Mrs. Git live in
 The project is named after the part of London that Mr. and Mrs. Git live in
 the particular Monty Python sketch.
 the particular Monty Python sketch.
 
 

+ 1 - 0
bin/dul-receive-pack

@@ -2,6 +2,7 @@
 # dul-receive-pack - git-receive-pack in python
 # dul-receive-pack - git-receive-pack in python
 # Copyright (C) 2008 John Carr <john.carr@unrouted.co.uk>
 # Copyright (C) 2008 John Carr <john.carr@unrouted.co.uk>
 #
 #
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # General Public License as public by the Free Software Foundation; version 2.0
 # General Public License as public by the Free Software Foundation; version 2.0
 # or (at your option) any later version. You can redistribute it and/or
 # or (at your option) any later version. You can redistribute it and/or

+ 1 - 0
bin/dul-upload-pack

@@ -2,6 +2,7 @@
 # dul-upload-pack - git-upload-pack in python
 # dul-upload-pack - git-upload-pack in python
 # Copyright (C) 2008 John Carr <john.carr@unrouted.co.uk>
 # Copyright (C) 2008 John Carr <john.carr@unrouted.co.uk>
 #
 #
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # General Public License as public by the Free Software Foundation; version 2.0
 # General Public License as public by the Free Software Foundation; version 2.0
 # or (at your option) any later version. You can redistribute it and/or
 # or (at your option) any later version. You can redistribute it and/or

+ 1 - 0
bin/dulwich

@@ -2,6 +2,7 @@
 # command-line interface for Dulwich
 # command-line interface for Dulwich
 # Copyright (C) 2020 Jelmer Vernooij <jelmer@jelmer.uk>
 # Copyright (C) 2020 Jelmer Vernooij <jelmer@jelmer.uk>
 #
 #
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # General Public License as public by the Free Software Foundation; version 2.0
 # General Public License as public by the Free Software Foundation; version 2.0
 # or (at your option) any later version. You can redistribute it and/or
 # or (at your option) any later version. You can redistribute it and/or

+ 1 - 0
devscripts/PREAMBLE.py

@@ -1,3 +1,4 @@
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # General Public License as public by the Free Software Foundation; version 2.0
 # General Public License as public by the Free Software Foundation; version 2.0
 # or (at your option) any later version. You can redistribute it and/or
 # or (at your option) any later version. You can redistribute it and/or

+ 2 - 0
devscripts/replace-preamble.sh

@@ -1,3 +1,5 @@
 #!/usr/bin/zsh
 #!/usr/bin/zsh
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
+
 perl -i -p0e "s{\Q$(cat PREAMBLE.py.old)\E}{$(cat devscripts/PREAMBLE.py)}g" dulwich/**/*.py bin/dul*
 perl -i -p0e "s{\Q$(cat PREAMBLE.py.old)\E}{$(cat devscripts/PREAMBLE.py)}g" dulwich/**/*.py bin/dul*
 perl -i -p0e "s{\Q$(cat PREAMBLE.c.old)\E}{$(cat devscripts/PREAMBLE.c)}g" dulwich/*.c
 perl -i -p0e "s{\Q$(cat PREAMBLE.c.old)\E}{$(cat devscripts/PREAMBLE.c)}g" dulwich/*.c

+ 1 - 0
dulwich/__init__.py

@@ -2,6 +2,7 @@
 # Copyright (C) 2007 James Westby <jw+debian@jameswestby.net>
 # Copyright (C) 2007 James Westby <jw+debian@jameswestby.net>
 # Copyright (C) 2008 Jelmer Vernooij <jelmer@jelmer.uk>
 # Copyright (C) 2008 Jelmer Vernooij <jelmer@jelmer.uk>
 #
 #
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # General Public License as public by the Free Software Foundation; version 2.0
 # General Public License as public by the Free Software Foundation; version 2.0
 # or (at your option) any later version. You can redistribute it and/or
 # or (at your option) any later version. You can redistribute it and/or

+ 1 - 0
dulwich/archive.py

@@ -2,6 +2,7 @@
 # Copyright (C) 2015 Jonas Haag <jonas@lophus.org>
 # Copyright (C) 2015 Jonas Haag <jonas@lophus.org>
 # Copyright (C) 2015 Jelmer Vernooij <jelmer@jelmer.uk>
 # Copyright (C) 2015 Jelmer Vernooij <jelmer@jelmer.uk>
 #
 #
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # General Public License as public by the Free Software Foundation; version 2.0
 # General Public License as public by the Free Software Foundation; version 2.0
 # or (at your option) any later version. You can redistribute it and/or
 # or (at your option) any later version. You can redistribute it and/or

+ 1 - 0
dulwich/bundle.py

@@ -1,6 +1,7 @@
 # bundle.py -- Bundle format support
 # bundle.py -- Bundle format support
 # Copyright (C) 2020 Jelmer Vernooij <jelmer@jelmer.uk>
 # Copyright (C) 2020 Jelmer Vernooij <jelmer@jelmer.uk>
 #
 #
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # General Public License as public by the Free Software Foundation; version 2.0
 # General Public License as public by the Free Software Foundation; version 2.0
 # or (at your option) any later version. You can redistribute it and/or
 # or (at your option) any later version. You can redistribute it and/or

+ 1 - 0
dulwich/cli.py

@@ -3,6 +3,7 @@
 # Copyright (C) 2008-2011 Jelmer Vernooij <jelmer@jelmer.uk>
 # Copyright (C) 2008-2011 Jelmer Vernooij <jelmer@jelmer.uk>
 # vim: expandtab
 # vim: expandtab
 #
 #
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # General Public License as public by the Free Software Foundation; version 2.0
 # General Public License as public by the Free Software Foundation; version 2.0
 # or (at your option) any later version. You can redistribute it and/or
 # or (at your option) any later version. You can redistribute it and/or

+ 1 - 0
dulwich/client.py

@@ -1,6 +1,7 @@
 # client.py -- Implementation of the client side git protocols
 # client.py -- Implementation of the client side git protocols
 # Copyright (C) 2008-2013 Jelmer Vernooij <jelmer@jelmer.uk>
 # Copyright (C) 2008-2013 Jelmer Vernooij <jelmer@jelmer.uk>
 #
 #
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # General Public License as public by the Free Software Foundation; version 2.0
 # General Public License as public by the Free Software Foundation; version 2.0
 # or (at your option) any later version. You can redistribute it and/or
 # or (at your option) any later version. You can redistribute it and/or

+ 1 - 0
dulwich/cloud/gcs.py

@@ -1,6 +1,7 @@
 # object_store.py -- Object store for git objects
 # object_store.py -- Object store for git objects
 # Copyright (C) 2021 Jelmer Vernooij <jelmer@jelmer.uk>
 # Copyright (C) 2021 Jelmer Vernooij <jelmer@jelmer.uk>
 #
 #
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # General Public License as public by the Free Software Foundation; version 2.0
 # General Public License as public by the Free Software Foundation; version 2.0
 # or (at your option) any later version. You can redistribute it and/or
 # or (at your option) any later version. You can redistribute it and/or

+ 1 - 0
dulwich/config.py

@@ -1,6 +1,7 @@
 # config.py - Reading and writing Git config files
 # config.py - Reading and writing Git config files
 # Copyright (C) 2011-2013 Jelmer Vernooij <jelmer@jelmer.uk>
 # Copyright (C) 2011-2013 Jelmer Vernooij <jelmer@jelmer.uk>
 #
 #
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # General Public License as public by the Free Software Foundation; version 2.0
 # General Public License as public by the Free Software Foundation; version 2.0
 # or (at your option) any later version. You can redistribute it and/or
 # or (at your option) any later version. You can redistribute it and/or

+ 1 - 0
dulwich/contrib/__init__.py

@@ -1,6 +1,7 @@
 # __init__.py -- Contrib module for Dulwich
 # __init__.py -- Contrib module for Dulwich
 # Copyright (C) 2014 Jelmer Vernooij <jelmer@jelmer.uk>
 # Copyright (C) 2014 Jelmer Vernooij <jelmer@jelmer.uk>
 #
 #
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # General Public License as public by the Free Software Foundation; version 2.0
 # General Public License as public by the Free Software Foundation; version 2.0
 # or (at your option) any later version. You can redistribute it and/or
 # or (at your option) any later version. You can redistribute it and/or

+ 1 - 0
dulwich/contrib/diffstat.py

@@ -1,6 +1,7 @@
 #!/usr/bin/env python
 #!/usr/bin/env python
 # vim:ts=4:sw=4:softtabstop=4:smarttab:expandtab
 # vim:ts=4:sw=4:softtabstop=4:smarttab:expandtab
 
 
+# SPDX-License-Identifier: MIT
 # Copyright (c) 2020 Kevin B. Hendricks, Stratford Ontario Canada
 # Copyright (c) 2020 Kevin B. Hendricks, Stratford Ontario Canada
 # All rights reserved.
 # All rights reserved.
 #
 #

+ 1 - 0
dulwich/contrib/paramiko_vendor.py

@@ -1,6 +1,7 @@
 # paramiko_vendor.py -- paramiko implementation of the SSHVendor interface
 # paramiko_vendor.py -- paramiko implementation of the SSHVendor interface
 # Copyright (C) 2013 Aaron O'Mullan <aaron.omullan@friendco.de>
 # Copyright (C) 2013 Aaron O'Mullan <aaron.omullan@friendco.de>
 #
 #
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # General Public License as public by the Free Software Foundation; version 2.0
 # General Public License as public by the Free Software Foundation; version 2.0
 # or (at your option) any later version. You can redistribute it and/or
 # or (at your option) any later version. You can redistribute it and/or

+ 1 - 0
dulwich/contrib/release_robot.py

@@ -1,5 +1,6 @@
 # release_robot.py
 # release_robot.py
 #
 #
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # General Public License as public by the Free Software Foundation; version 2.0
 # General Public License as public by the Free Software Foundation; version 2.0
 # or (at your option) any later version. You can redistribute it and/or
 # or (at your option) any later version. You can redistribute it and/or

+ 1 - 0
dulwich/contrib/requests_vendor.py

@@ -1,6 +1,7 @@
 # requests_vendor.py -- requests implementation of the AbstractHttpGitClient interface
 # requests_vendor.py -- requests implementation of the AbstractHttpGitClient interface
 # Copyright (C) 2022 Eden Shalit <epopcop@gmail.com>
 # Copyright (C) 2022 Eden Shalit <epopcop@gmail.com>
 #
 #
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # General Public License as public by the Free Software Foundation; version 2.0
 # General Public License as public by the Free Software Foundation; version 2.0
 # or (at your option) any later version. You can redistribute it and/or
 # or (at your option) any later version. You can redistribute it and/or

+ 1 - 0
dulwich/contrib/swift.py

@@ -3,6 +3,7 @@
 #
 #
 # Author: Fabien Boucher <fabien.boucher@enovance.com>
 # Author: Fabien Boucher <fabien.boucher@enovance.com>
 #
 #
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # General Public License as public by the Free Software Foundation; version 2.0
 # General Public License as public by the Free Software Foundation; version 2.0
 # or (at your option) any later version. You can redistribute it and/or
 # or (at your option) any later version. You can redistribute it and/or

+ 1 - 0
dulwich/credentials.py

@@ -2,6 +2,7 @@
 
 
 # Copyright (C) 2022 Daniele Trifirò <daniele@iterative.ai>
 # Copyright (C) 2022 Daniele Trifirò <daniele@iterative.ai>
 #
 #
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # General Public License as public by the Free Software Foundation; version 2.0
 # General Public License as public by the Free Software Foundation; version 2.0
 # or (at your option) any later version. You can redistribute it and/or
 # or (at your option) any later version. You can redistribute it and/or

+ 1 - 0
dulwich/diff_tree.py

@@ -1,6 +1,7 @@
 # diff_tree.py -- Utilities for diffing files and trees.
 # diff_tree.py -- Utilities for diffing files and trees.
 # Copyright (C) 2010 Google, Inc.
 # Copyright (C) 2010 Google, Inc.
 #
 #
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # General Public License as public by the Free Software Foundation; version 2.0
 # General Public License as public by the Free Software Foundation; version 2.0
 # or (at your option) any later version. You can redistribute it and/or
 # or (at your option) any later version. You can redistribute it and/or

+ 1 - 0
dulwich/errors.py

@@ -2,6 +2,7 @@
 # Copyright (C) 2007 James Westby <jw+debian@jameswestby.net>
 # Copyright (C) 2007 James Westby <jw+debian@jameswestby.net>
 # Copyright (C) 2009-2012 Jelmer Vernooij <jelmer@jelmer.uk>
 # Copyright (C) 2009-2012 Jelmer Vernooij <jelmer@jelmer.uk>
 #
 #
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # General Public License as public by the Free Software Foundation; version 2.0
 # General Public License as public by the Free Software Foundation; version 2.0
 # or (at your option) any later version. You can redistribute it and/or
 # or (at your option) any later version. You can redistribute it and/or

+ 1 - 0
dulwich/fastexport.py

@@ -1,6 +1,7 @@
 # __init__.py -- Fast export/import functionality
 # __init__.py -- Fast export/import functionality
 # Copyright (C) 2010-2013 Jelmer Vernooij <jelmer@jelmer.uk>
 # Copyright (C) 2010-2013 Jelmer Vernooij <jelmer@jelmer.uk>
 #
 #
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # General Public License as public by the Free Software Foundation; version 2.0
 # General Public License as public by the Free Software Foundation; version 2.0
 # or (at your option) any later version. You can redistribute it and/or
 # or (at your option) any later version. You can redistribute it and/or

+ 1 - 0
dulwich/file.py

@@ -1,6 +1,7 @@
 # file.py -- Safe access to git files
 # file.py -- Safe access to git files
 # Copyright (C) 2010 Google, Inc.
 # Copyright (C) 2010 Google, Inc.
 #
 #
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # General Public License as public by the Free Software Foundation; version 2.0
 # General Public License as public by the Free Software Foundation; version 2.0
 # or (at your option) any later version. You can redistribute it and/or
 # or (at your option) any later version. You can redistribute it and/or

+ 1 - 0
dulwich/graph.py

@@ -1,6 +1,7 @@
 # vim:ts=4:sw=4:softtabstop=4:smarttab:expandtab
 # vim:ts=4:sw=4:softtabstop=4:smarttab:expandtab
 # Copyright (c) 2020 Kevin B. Hendricks, Stratford Ontario Canada
 # Copyright (c) 2020 Kevin B. Hendricks, Stratford Ontario Canada
 #
 #
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # General Public License as public by the Free Software Foundation; version 2.0
 # General Public License as public by the Free Software Foundation; version 2.0
 # or (at your option) any later version. You can redistribute it and/or
 # or (at your option) any later version. You can redistribute it and/or

+ 1 - 0
dulwich/greenthreads.py

@@ -3,6 +3,7 @@
 #
 #
 # Author: Fabien Boucher <fabien.boucher@enovance.com>
 # Author: Fabien Boucher <fabien.boucher@enovance.com>
 #
 #
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # General Public License as public by the Free Software Foundation; version 2.0
 # General Public License as public by the Free Software Foundation; version 2.0
 # or (at your option) any later version. You can redistribute it and/or
 # or (at your option) any later version. You can redistribute it and/or

+ 1 - 0
dulwich/hooks.py

@@ -1,6 +1,7 @@
 # hooks.py -- for dealing with git hooks
 # hooks.py -- for dealing with git hooks
 # Copyright (C) 2012-2013 Jelmer Vernooij and others.
 # Copyright (C) 2012-2013 Jelmer Vernooij and others.
 #
 #
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # General Public License as public by the Free Software Foundation; version 2.0
 # General Public License as public by the Free Software Foundation; version 2.0
 # or (at your option) any later version. You can redistribute it and/or
 # or (at your option) any later version. You can redistribute it and/or

+ 1 - 0
dulwich/ignore.py

@@ -1,5 +1,6 @@
 # Copyright (C) 2017 Jelmer Vernooij <jelmer@jelmer.uk>
 # Copyright (C) 2017 Jelmer Vernooij <jelmer@jelmer.uk>
 #
 #
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # General Public License as public by the Free Software Foundation; version 2.0
 # General Public License as public by the Free Software Foundation; version 2.0
 # or (at your option) any later version. You can redistribute it and/or
 # or (at your option) any later version. You can redistribute it and/or

+ 1 - 0
dulwich/index.py

@@ -1,6 +1,7 @@
 # index.py -- File parser/writer for the git index file
 # index.py -- File parser/writer for the git index file
 # Copyright (C) 2008-2013 Jelmer Vernooij <jelmer@jelmer.uk>
 # Copyright (C) 2008-2013 Jelmer Vernooij <jelmer@jelmer.uk>
 #
 #
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # General Public License as public by the Free Software Foundation; version 2.0
 # General Public License as public by the Free Software Foundation; version 2.0
 # or (at your option) any later version. You can redistribute it and/or
 # or (at your option) any later version. You can redistribute it and/or

+ 1 - 0
dulwich/lfs.py

@@ -1,6 +1,7 @@
 # lfs.py -- Implementation of the LFS
 # lfs.py -- Implementation of the LFS
 # Copyright (C) 2020 Jelmer Vernooij
 # Copyright (C) 2020 Jelmer Vernooij
 #
 #
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # General Public License as public by the Free Software Foundation; version 2.0
 # General Public License as public by the Free Software Foundation; version 2.0
 # or (at your option) any later version. You can redistribute it and/or
 # or (at your option) any later version. You can redistribute it and/or

+ 1 - 0
dulwich/line_ending.py

@@ -1,6 +1,7 @@
 # line_ending.py -- Line ending conversion functions
 # line_ending.py -- Line ending conversion functions
 # Copyright (C) 2018-2018 Boris Feld <boris.feld@comet.ml>
 # Copyright (C) 2018-2018 Boris Feld <boris.feld@comet.ml>
 #
 #
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # General Public License as public by the Free Software Foundation; version 2.0
 # General Public License as public by the Free Software Foundation; version 2.0
 # or (at your option) any later version. You can redistribute it and/or
 # or (at your option) any later version. You can redistribute it and/or

+ 1 - 0
dulwich/log_utils.py

@@ -1,6 +1,7 @@
 # log_utils.py -- Logging utilities for Dulwich
 # log_utils.py -- Logging utilities for Dulwich
 # Copyright (C) 2010 Google, Inc.
 # Copyright (C) 2010 Google, Inc.
 #
 #
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # General Public License as public by the Free Software Foundation; version 2.0
 # General Public License as public by the Free Software Foundation; version 2.0
 # or (at your option) any later version. You can redistribute it and/or
 # or (at your option) any later version. You can redistribute it and/or

+ 1 - 0
dulwich/lru_cache.py

@@ -2,6 +2,7 @@
 # Copyright (C) 2006, 2008 Canonical Ltd
 # Copyright (C) 2006, 2008 Canonical Ltd
 # Copyright (C) 2022 Jelmer Vernooij <jelmer@jelmer.uk>
 # Copyright (C) 2022 Jelmer Vernooij <jelmer@jelmer.uk>
 #
 #
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # General Public License as public by the Free Software Foundation; version 2.0
 # General Public License as public by the Free Software Foundation; version 2.0
 # or (at your option) any later version. You can redistribute it and/or
 # or (at your option) any later version. You can redistribute it and/or

+ 1 - 0
dulwich/mailmap.py

@@ -1,6 +1,7 @@
 # mailmap.py -- Mailmap reader
 # mailmap.py -- Mailmap reader
 # Copyright (C) 2018 Jelmer Vernooij <jelmer@jelmer.uk>
 # Copyright (C) 2018 Jelmer Vernooij <jelmer@jelmer.uk>
 #
 #
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # General Public License as public by the Free Software Foundation; version 2.0
 # General Public License as public by the Free Software Foundation; version 2.0
 # or (at your option) any later version. You can redistribute it and/or
 # or (at your option) any later version. You can redistribute it and/or

+ 1 - 0
dulwich/object_store.py

@@ -2,6 +2,7 @@
 # Copyright (C) 2008-2013 Jelmer Vernooij <jelmer@jelmer.uk>
 # Copyright (C) 2008-2013 Jelmer Vernooij <jelmer@jelmer.uk>
 #                         and others
 #                         and others
 #
 #
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # General Public License as public by the Free Software Foundation; version 2.0
 # General Public License as public by the Free Software Foundation; version 2.0
 # or (at your option) any later version. You can redistribute it and/or
 # or (at your option) any later version. You can redistribute it and/or

+ 1 - 0
dulwich/objects.py

@@ -2,6 +2,7 @@
 # Copyright (C) 2007 James Westby <jw+debian@jameswestby.net>
 # Copyright (C) 2007 James Westby <jw+debian@jameswestby.net>
 # Copyright (C) 2008-2013 Jelmer Vernooij <jelmer@jelmer.uk>
 # Copyright (C) 2008-2013 Jelmer Vernooij <jelmer@jelmer.uk>
 #
 #
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # General Public License as public by the Free Software Foundation; version 2.0
 # General Public License as public by the Free Software Foundation; version 2.0
 # or (at your option) any later version. You can redistribute it and/or
 # or (at your option) any later version. You can redistribute it and/or

+ 1 - 0
dulwich/objectspec.py

@@ -1,6 +1,7 @@
 # objectspec.py -- Object specification
 # objectspec.py -- Object specification
 # Copyright (C) 2014 Jelmer Vernooij <jelmer@jelmer.uk>
 # Copyright (C) 2014 Jelmer Vernooij <jelmer@jelmer.uk>
 #
 #
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # General Public License as public by the Free Software Foundation; version 2.0
 # General Public License as public by the Free Software Foundation; version 2.0
 # or (at your option) any later version. You can redistribute it and/or
 # or (at your option) any later version. You can redistribute it and/or

+ 1 - 0
dulwich/pack.py

@@ -2,6 +2,7 @@
 # Copyright (C) 2007 James Westby <jw+debian@jameswestby.net>
 # Copyright (C) 2007 James Westby <jw+debian@jameswestby.net>
 # Copyright (C) 2008-2013 Jelmer Vernooij <jelmer@jelmer.uk>
 # Copyright (C) 2008-2013 Jelmer Vernooij <jelmer@jelmer.uk>
 #
 #
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # General Public License as public by the Free Software Foundation; version 2.0
 # General Public License as public by the Free Software Foundation; version 2.0
 # or (at your option) any later version. You can redistribute it and/or
 # or (at your option) any later version. You can redistribute it and/or

+ 1 - 0
dulwich/patch.py

@@ -1,6 +1,7 @@
 # patch.py -- For dealing with packed-style patches.
 # patch.py -- For dealing with packed-style patches.
 # Copyright (C) 2009-2013 Jelmer Vernooij <jelmer@jelmer.uk>
 # Copyright (C) 2009-2013 Jelmer Vernooij <jelmer@jelmer.uk>
 #
 #
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # General Public License as public by the Free Software Foundation; version 2.0
 # General Public License as public by the Free Software Foundation; version 2.0
 # or (at your option) any later version. You can redistribute it and/or
 # or (at your option) any later version. You can redistribute it and/or

+ 1 - 0
dulwich/porcelain.py

@@ -1,6 +1,7 @@
 # porcelain.py -- Porcelain-like layer on top of Dulwich
 # porcelain.py -- Porcelain-like layer on top of Dulwich
 # Copyright (C) 2013 Jelmer Vernooij <jelmer@jelmer.uk>
 # Copyright (C) 2013 Jelmer Vernooij <jelmer@jelmer.uk>
 #
 #
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # General Public License as public by the Free Software Foundation; version 2.0
 # General Public License as public by the Free Software Foundation; version 2.0
 # or (at your option) any later version. You can redistribute it and/or
 # or (at your option) any later version. You can redistribute it and/or

+ 1 - 0
dulwich/protocol.py

@@ -2,6 +2,7 @@
 # Copyright (C) 2008 John Carr <john.carr@unrouted.co.uk>
 # Copyright (C) 2008 John Carr <john.carr@unrouted.co.uk>
 # Copyright (C) 2008-2012 Jelmer Vernooij <jelmer@jelmer.uk>
 # Copyright (C) 2008-2012 Jelmer Vernooij <jelmer@jelmer.uk>
 #
 #
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # General Public License as public by the Free Software Foundation; version 2.0
 # General Public License as public by the Free Software Foundation; version 2.0
 # or (at your option) any later version. You can redistribute it and/or
 # or (at your option) any later version. You can redistribute it and/or

+ 1 - 0
dulwich/reflog.py

@@ -1,6 +1,7 @@
 # reflog.py -- Parsing and writing reflog files
 # reflog.py -- Parsing and writing reflog files
 # Copyright (C) 2015 Jelmer Vernooij and others.
 # Copyright (C) 2015 Jelmer Vernooij and others.
 #
 #
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # General Public License as public by the Free Software Foundation; version 2.0
 # General Public License as public by the Free Software Foundation; version 2.0
 # or (at your option) any later version. You can redistribute it and/or
 # or (at your option) any later version. You can redistribute it and/or

+ 1 - 0
dulwich/refs.py

@@ -1,6 +1,7 @@
 # refs.py -- For dealing with git refs
 # refs.py -- For dealing with git refs
 # Copyright (C) 2008-2013 Jelmer Vernooij <jelmer@jelmer.uk>
 # Copyright (C) 2008-2013 Jelmer Vernooij <jelmer@jelmer.uk>
 #
 #
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # General Public License as public by the Free Software Foundation; version 2.0
 # General Public License as public by the Free Software Foundation; version 2.0
 # or (at your option) any later version. You can redistribute it and/or
 # or (at your option) any later version. You can redistribute it and/or

+ 1 - 0
dulwich/repo.py

@@ -2,6 +2,7 @@
 # Copyright (C) 2007 James Westby <jw+debian@jameswestby.net>
 # Copyright (C) 2007 James Westby <jw+debian@jameswestby.net>
 # Copyright (C) 2008-2013 Jelmer Vernooij <jelmer@jelmer.uk>
 # Copyright (C) 2008-2013 Jelmer Vernooij <jelmer@jelmer.uk>
 #
 #
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # General Public License as public by the Free Software Foundation; version 2.0
 # General Public License as public by the Free Software Foundation; version 2.0
 # or (at your option) any later version. You can redistribute it and/or
 # or (at your option) any later version. You can redistribute it and/or

+ 1 - 0
dulwich/server.py

@@ -2,6 +2,7 @@
 # Copyright (C) 2008 John Carr <john.carr@unrouted.co.uk>
 # Copyright (C) 2008 John Carr <john.carr@unrouted.co.uk>
 # Copyright(C) 2011-2012 Jelmer Vernooij <jelmer@jelmer.uk>
 # Copyright(C) 2011-2012 Jelmer Vernooij <jelmer@jelmer.uk>
 #
 #
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # General Public License as public by the Free Software Foundation; version 2.0
 # General Public License as public by the Free Software Foundation; version 2.0
 # or (at your option) any later version. You can redistribute it and/or
 # or (at your option) any later version. You can redistribute it and/or

+ 1 - 0
dulwich/stash.py

@@ -1,6 +1,7 @@
 # stash.py
 # stash.py
 # Copyright (C) 2018 Jelmer Vernooij <jelmer@samba.org>
 # Copyright (C) 2018 Jelmer Vernooij <jelmer@samba.org>
 #
 #
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # General Public License as public by the Free Software Foundation; version 2.0
 # General Public License as public by the Free Software Foundation; version 2.0
 # or (at your option) any later version. You can redistribute it and/or
 # or (at your option) any later version. You can redistribute it and/or

+ 1 - 0
dulwich/submodule.py

@@ -1,6 +1,7 @@
 # config.py - Reading and writing Git config files
 # config.py - Reading and writing Git config files
 # Copyright (C) 2011-2013 Jelmer Vernooij <jelmer@jelmer.uk>
 # Copyright (C) 2011-2013 Jelmer Vernooij <jelmer@jelmer.uk>
 #
 #
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # General Public License as public by the Free Software Foundation; version 2.0
 # General Public License as public by the Free Software Foundation; version 2.0
 # or (at your option) any later version. You can redistribute it and/or
 # or (at your option) any later version. You can redistribute it and/or

+ 1 - 0
dulwich/tests/__init__.py

@@ -1,6 +1,7 @@
 # __init__.py -- The tests for dulwich
 # __init__.py -- The tests for dulwich
 # Copyright (C) 2024 Jelmer Vernooij <jelmer@jelmer.uk>
 # Copyright (C) 2024 Jelmer Vernooij <jelmer@jelmer.uk>
 #
 #
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # General Public License as public by the Free Software Foundation; version 2.0
 # General Public License as public by the Free Software Foundation; version 2.0
 # or (at your option) any later version. You can redistribute it and/or
 # or (at your option) any later version. You can redistribute it and/or

+ 1 - 0
dulwich/tests/test_object_store.py

@@ -1,6 +1,7 @@
 # test_object_store.py -- tests for object_store.py
 # test_object_store.py -- tests for object_store.py
 # Copyright (C) 2008 Jelmer Vernooij <jelmer@jelmer.uk>
 # Copyright (C) 2008 Jelmer Vernooij <jelmer@jelmer.uk>
 #
 #
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # General Public License as public by the Free Software Foundation; version 2.0
 # General Public License as public by the Free Software Foundation; version 2.0
 # or (at your option) any later version. You can redistribute it and/or
 # or (at your option) any later version. You can redistribute it and/or

+ 1 - 0
dulwich/tests/utils.py

@@ -1,6 +1,7 @@
 # utils.py -- Test utilities for Dulwich.
 # utils.py -- Test utilities for Dulwich.
 # Copyright (C) 2010 Google, Inc.
 # Copyright (C) 2010 Google, Inc.
 #
 #
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # General Public License as public by the Free Software Foundation; version 2.0
 # General Public License as public by the Free Software Foundation; version 2.0
 # or (at your option) any later version. You can redistribute it and/or
 # or (at your option) any later version. You can redistribute it and/or

+ 1 - 0
dulwich/walk.py

@@ -1,6 +1,7 @@
 # walk.py -- General implementation of walking commits and their contents.
 # walk.py -- General implementation of walking commits and their contents.
 # Copyright (C) 2010 Google, Inc.
 # Copyright (C) 2010 Google, Inc.
 #
 #
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # General Public License as public by the Free Software Foundation; version 2.0
 # General Public License as public by the Free Software Foundation; version 2.0
 # or (at your option) any later version. You can redistribute it and/or
 # or (at your option) any later version. You can redistribute it and/or

+ 1 - 0
dulwich/web.py

@@ -2,6 +2,7 @@
 # Copyright (C) 2010 Google, Inc.
 # Copyright (C) 2010 Google, Inc.
 # Copyright (C) 2012 Jelmer Vernooij <jelmer@jelmer.uk>
 # Copyright (C) 2012 Jelmer Vernooij <jelmer@jelmer.uk>
 #
 #
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # General Public License as public by the Free Software Foundation; version 2.0
 # General Public License as public by the Free Software Foundation; version 2.0
 # or (at your option) any later version. You can redistribute it and/or
 # or (at your option) any later version. You can redistribute it and/or

+ 2 - 0
examples/clone.py

@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
+
 """Clone.
 """Clone.
 
 
 This trivial script demonstrates how to clone or lock a remote repository.
 This trivial script demonstrates how to clone or lock a remote repository.

+ 2 - 0
examples/config.py

@@ -1,4 +1,6 @@
 #!/usr/bin/python
 #!/usr/bin/python
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
+
 # Read the config file for a git repository.
 # Read the config file for a git repository.
 #
 #
 # Example usage:
 # Example usage:

+ 2 - 0
examples/diff.py

@@ -1,4 +1,6 @@
 #!/usr/bin/python
 #!/usr/bin/python
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
+
 # This trivial script demonstrates how to extract the unified diff for a single
 # This trivial script demonstrates how to extract the unified diff for a single
 # commit in a local repository.
 # commit in a local repository.
 #
 #

+ 1 - 0
examples/gcs.py

@@ -1,4 +1,5 @@
 #!/usr/bin/python3
 #!/usr/bin/python3
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
 
 
 import tempfile
 import tempfile
 
 

+ 2 - 0
examples/latest_change.py

@@ -1,4 +1,6 @@
 #!/usr/bin/python
 #!/usr/bin/python
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
+
 # Example printing the last author of a specified file
 # Example printing the last author of a specified file
 
 
 import sys
 import sys

+ 2 - 0
examples/memoryrepo.py

@@ -1,4 +1,6 @@
 #!/usr/bin/python
 #!/usr/bin/python
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
+
 # This script creates a clone of a remote repository in local memory,
 # This script creates a clone of a remote repository in local memory,
 # then adds a single file and pushes the result back.
 # then adds a single file and pushes the result back.
 #
 #

+ 1 - 0
examples/rename-branch.py

@@ -1,4 +1,5 @@
 #!/usr/bin/python3
 #!/usr/bin/python3
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
 
 
 import argparse
 import argparse
 
 

+ 2 - 0
fuzzing/fuzz-targets/fuzz_bundle.py

@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
+
 import sys
 import sys
 from io import BytesIO
 from io import BytesIO
 from typing import Optional
 from typing import Optional

+ 2 - 0
fuzzing/fuzz-targets/fuzz_configfile.py

@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
+
 import sys
 import sys
 from io import BytesIO
 from io import BytesIO
 from typing import Optional
 from typing import Optional

+ 2 - 0
fuzzing/fuzz-targets/fuzz_object_store.py

@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
+
 import stat
 import stat
 import sys
 import sys
 from io import BytesIO
 from io import BytesIO

+ 2 - 0
fuzzing/fuzz-targets/fuzz_repo.py

@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
+
 import os
 import os
 import sys
 import sys
 import tempfile
 import tempfile

+ 2 - 0
fuzzing/fuzz-targets/test_utils.py

@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
+
 import atheris  # pragma: no cover
 import atheris  # pragma: no cover
 
 
 
 

+ 1 - 0
fuzzing/oss-fuzz-scripts/container-environment-bootstrap.sh

@@ -1,4 +1,5 @@
 #!/usr/bin/env bash
 #!/usr/bin/env bash
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
 
 
 set -euo pipefail
 set -euo pipefail
 
 

+ 1 - 0
setup.py

@@ -1,6 +1,7 @@
 #!/usr/bin/python3
 #!/usr/bin/python3
 # Setup file for dulwich
 # Setup file for dulwich
 # Copyright (C) 2008-2022 Jelmer Vernooij <jelmer@jelmer.uk>
 # Copyright (C) 2008-2022 Jelmer Vernooij <jelmer@jelmer.uk>
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
 
 
 import os
 import os
 import sys
 import sys

+ 1 - 0
tests/__init__.py

@@ -1,6 +1,7 @@
 # __init__.py -- The tests for dulwich
 # __init__.py -- The tests for dulwich
 # Copyright (C) 2007 James Westby <jw+debian@jameswestby.net>
 # Copyright (C) 2007 James Westby <jw+debian@jameswestby.net>
 #
 #
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # General Public License as public by the Free Software Foundation; version 2.0
 # General Public License as public by the Free Software Foundation; version 2.0
 # or (at your option) any later version. You can redistribute it and/or
 # or (at your option) any later version. You can redistribute it and/or

+ 1 - 0
tests/compat/__init__.py

@@ -1,6 +1,7 @@
 # __init__.py -- Compatibility tests for dulwich
 # __init__.py -- Compatibility tests for dulwich
 # Copyright (C) 2010 Jelmer Vernooij <jelmer@jelmer.uk>
 # Copyright (C) 2010 Jelmer Vernooij <jelmer@jelmer.uk>
 #
 #
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # General Public License as public by the Free Software Foundation; version 2.0
 # General Public License as public by the Free Software Foundation; version 2.0
 # or (at your option) any later version. You can redistribute it and/or
 # or (at your option) any later version. You can redistribute it and/or

+ 1 - 0
tests/compat/server_utils.py

@@ -1,6 +1,7 @@
 # server_utils.py -- Git server compatibility utilities
 # server_utils.py -- Git server compatibility utilities
 # Copyright (C) 2010 Google, Inc.
 # Copyright (C) 2010 Google, Inc.
 #
 #
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # General Public License as public by the Free Software Foundation; version 2.0
 # General Public License as public by the Free Software Foundation; version 2.0
 # or (at your option) any later version. You can redistribute it and/or
 # or (at your option) any later version. You can redistribute it and/or

+ 1 - 0
tests/compat/test_client.py

@@ -1,6 +1,7 @@
 # test_client.py -- Compatibility tests for git client.
 # test_client.py -- Compatibility tests for git client.
 # Copyright (C) 2010 Google, Inc.
 # Copyright (C) 2010 Google, Inc.
 #
 #
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # General Public License as public by the Free Software Foundation; version 2.0
 # General Public License as public by the Free Software Foundation; version 2.0
 # or (at your option) any later version. You can redistribute it and/or
 # or (at your option) any later version. You can redistribute it and/or

+ 1 - 0
tests/compat/test_pack.py

@@ -1,6 +1,7 @@
 # test_pack.py -- Compatibility tests for git packs.
 # test_pack.py -- Compatibility tests for git packs.
 # Copyright (C) 2010 Google, Inc.
 # Copyright (C) 2010 Google, Inc.
 #
 #
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # General Public License as public by the Free Software Foundation; version 2.0
 # General Public License as public by the Free Software Foundation; version 2.0
 # or (at your option) any later version. You can redistribute it and/or
 # or (at your option) any later version. You can redistribute it and/or

+ 1 - 0
tests/compat/test_patch.py

@@ -1,6 +1,7 @@
 # test_patch.py -- test patch compatibility with CGit
 # test_patch.py -- test patch compatibility with CGit
 # Copyright (C) 2019 Boris Feld <boris@comet.ml>
 # Copyright (C) 2019 Boris Feld <boris@comet.ml>
 #
 #
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # General Public License as public by the Free Software Foundation; version 2.0
 # General Public License as public by the Free Software Foundation; version 2.0
 # or (at your option) any later version. You can redistribute it and/or
 # or (at your option) any later version. You can redistribute it and/or

+ 1 - 0
tests/compat/test_porcelain.py

@@ -1,6 +1,7 @@
 # test_porcelain .py -- Tests for dulwich.porcelain/CGit compatibility
 # test_porcelain .py -- Tests for dulwich.porcelain/CGit compatibility
 # Copyright (C) 2010 Google, Inc.
 # Copyright (C) 2010 Google, Inc.
 #
 #
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # General Public License as public by the Free Software Foundation; version 2.0
 # General Public License as public by the Free Software Foundation; version 2.0
 # or (at your option) any later version. You can redistribute it and/or
 # or (at your option) any later version. You can redistribute it and/or

+ 1 - 0
tests/compat/test_repository.py

@@ -1,6 +1,7 @@
 # test_repo.py -- Git repo compatibility tests
 # test_repo.py -- Git repo compatibility tests
 # Copyright (C) 2010 Google, Inc.
 # Copyright (C) 2010 Google, Inc.
 #
 #
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # General Public License as public by the Free Software Foundation; version 2.0
 # General Public License as public by the Free Software Foundation; version 2.0
 # or (at your option) any later version. You can redistribute it and/or
 # or (at your option) any later version. You can redistribute it and/or

+ 1 - 0
tests/compat/test_server.py

@@ -1,6 +1,7 @@
 # test_server.py -- Compatibility tests for git server.
 # test_server.py -- Compatibility tests for git server.
 # Copyright (C) 2010 Google, Inc.
 # Copyright (C) 2010 Google, Inc.
 #
 #
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # General Public License as public by the Free Software Foundation; version 2.0
 # General Public License as public by the Free Software Foundation; version 2.0
 # or (at your option) any later version. You can redistribute it and/or
 # or (at your option) any later version. You can redistribute it and/or

+ 1 - 0
tests/compat/test_utils.py

@@ -1,6 +1,7 @@
 # test_utils.py -- Tests for git compatibility utilities
 # test_utils.py -- Tests for git compatibility utilities
 # Copyright (C) 2010 Google, Inc.
 # Copyright (C) 2010 Google, Inc.
 #
 #
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # General Public License as public by the Free Software Foundation; version 2.0
 # General Public License as public by the Free Software Foundation; version 2.0
 # or (at your option) any later version. You can redistribute it and/or
 # or (at your option) any later version. You can redistribute it and/or

+ 1 - 0
tests/compat/test_web.py

@@ -1,6 +1,7 @@
 # test_web.py -- Compatibility tests for the git web server.
 # test_web.py -- Compatibility tests for the git web server.
 # Copyright (C) 2010 Google, Inc.
 # Copyright (C) 2010 Google, Inc.
 #
 #
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # General Public License as public by the Free Software Foundation; version 2.0
 # General Public License as public by the Free Software Foundation; version 2.0
 # or (at your option) any later version. You can redistribute it and/or
 # or (at your option) any later version. You can redistribute it and/or

+ 1 - 0
tests/compat/utils.py

@@ -1,6 +1,7 @@
 # utils.py -- Git compatibility utilities
 # utils.py -- Git compatibility utilities
 # Copyright (C) 2010 Google, Inc.
 # Copyright (C) 2010 Google, Inc.
 #
 #
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # General Public License as public by the Free Software Foundation; version 2.0
 # General Public License as public by the Free Software Foundation; version 2.0
 # or (at your option) any later version. You can redistribute it and/or
 # or (at your option) any later version. You can redistribute it and/or

+ 1 - 0
tests/contrib/__init__.py

@@ -1,6 +1,7 @@
 # __init__.py -- Contrib module for Dulwich
 # __init__.py -- Contrib module for Dulwich
 # Copyright (C) 2014 Jelmer Vernooij <jelmer@jelmer.uk>
 # Copyright (C) 2014 Jelmer Vernooij <jelmer@jelmer.uk>
 #
 #
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # General Public License as public by the Free Software Foundation; version 2.0
 # General Public License as public by the Free Software Foundation; version 2.0
 # or (at your option) any later version. You can redistribute it and/or
 # or (at your option) any later version. You can redistribute it and/or

+ 1 - 0
tests/contrib/test_paramiko_vendor.py

@@ -1,5 +1,6 @@
 # test_paramiko_vendor.py
 # test_paramiko_vendor.py
 #
 #
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # General Public License as public by the Free Software Foundation; version 2.0
 # General Public License as public by the Free Software Foundation; version 2.0
 # or (at your option) any later version. You can redistribute it and/or
 # or (at your option) any later version. You can redistribute it and/or

+ 1 - 0
tests/contrib/test_release_robot.py

@@ -1,5 +1,6 @@
 # release_robot.py
 # release_robot.py
 #
 #
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # General Public License as public by the Free Software Foundation; version 2.0
 # General Public License as public by the Free Software Foundation; version 2.0
 # or (at your option) any later version. You can redistribute it and/or
 # or (at your option) any later version. You can redistribute it and/or

+ 1 - 0
tests/contrib/test_swift.py

@@ -3,6 +3,7 @@
 #
 #
 # Author: Fabien Boucher <fabien.boucher@enovance.com>
 # Author: Fabien Boucher <fabien.boucher@enovance.com>
 #
 #
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # General Public License as public by the Free Software Foundation; version 2.0
 # General Public License as public by the Free Software Foundation; version 2.0
 # or (at your option) any later version. You can redistribute it and/or
 # or (at your option) any later version. You can redistribute it and/or

+ 1 - 0
tests/contrib/test_swift_smoke.py

@@ -3,6 +3,7 @@
 #
 #
 # Author: Fabien Boucher <fabien.boucher@enovance.com>
 # Author: Fabien Boucher <fabien.boucher@enovance.com>
 #
 #
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # General Public License as public by the Free Software Foundation; version 2.0
 # General Public License as public by the Free Software Foundation; version 2.0
 # or (at your option) any later version. You can redistribute it and/or
 # or (at your option) any later version. You can redistribute it and/or

+ 1 - 0
tests/test_archive.py

@@ -1,6 +1,7 @@
 # test_archive.py -- tests for archive
 # test_archive.py -- tests for archive
 # Copyright (C) 2015 Jelmer Vernooij <jelmer@jelmer.uk>
 # Copyright (C) 2015 Jelmer Vernooij <jelmer@jelmer.uk>
 #
 #
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # General Public License as public by the Free Software Foundation; version 2.0
 # General Public License as public by the Free Software Foundation; version 2.0
 # or (at your option) any later version. You can redistribute it and/or
 # or (at your option) any later version. You can redistribute it and/or

+ 1 - 0
tests/test_blackbox.py

@@ -1,6 +1,7 @@
 # test_blackbox.py -- blackbox tests
 # test_blackbox.py -- blackbox tests
 # Copyright (C) 2010 Jelmer Vernooij <jelmer@jelmer.uk>
 # Copyright (C) 2010 Jelmer Vernooij <jelmer@jelmer.uk>
 #
 #
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # General Public License as public by the Free Software Foundation; version 2.0
 # General Public License as public by the Free Software Foundation; version 2.0
 # or (at your option) any later version. You can redistribute it and/or
 # or (at your option) any later version. You can redistribute it and/or

+ 1 - 0
tests/test_bundle.py

@@ -1,6 +1,7 @@
 # test_bundle.py -- tests for bundle
 # test_bundle.py -- tests for bundle
 # Copyright (C) 2020 Jelmer Vernooij <jelmer@jelmer.uk>
 # Copyright (C) 2020 Jelmer Vernooij <jelmer@jelmer.uk>
 #
 #
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # General Public License as public by the Free Software Foundation; version 2.0
 # General Public License as public by the Free Software Foundation; version 2.0
 # or (at your option) any later version. You can redistribute it and/or
 # or (at your option) any later version. You can redistribute it and/or

+ 1 - 0
tests/test_client.py

@@ -1,6 +1,7 @@
 # test_client.py -- Tests for the git protocol, client side
 # test_client.py -- Tests for the git protocol, client side
 # Copyright (C) 2009 Jelmer Vernooij <jelmer@jelmer.uk>
 # Copyright (C) 2009 Jelmer Vernooij <jelmer@jelmer.uk>
 #
 #
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # General Public License as public by the Free Software Foundation; version 2.0
 # General Public License as public by the Free Software Foundation; version 2.0
 # or (at your option) any later version. You can redistribute it and/or
 # or (at your option) any later version. You can redistribute it and/or

+ 1 - 0
tests/test_config.py

@@ -1,6 +1,7 @@
 # test_config.py -- Tests for reading and writing configuration files
 # test_config.py -- Tests for reading and writing configuration files
 # Copyright (C) 2011 Jelmer Vernooij <jelmer@jelmer.uk>
 # Copyright (C) 2011 Jelmer Vernooij <jelmer@jelmer.uk>
 #
 #
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # General Public License as public by the Free Software Foundation; version 2.0
 # General Public License as public by the Free Software Foundation; version 2.0
 # or (at your option) any later version. You can redistribute it and/or
 # or (at your option) any later version. You can redistribute it and/or

+ 1 - 0
tests/test_credentials.py

@@ -2,6 +2,7 @@
 
 
 # Copyright (C) 2022 Daniele Trifirò <daniele@iterative.ai>
 # Copyright (C) 2022 Daniele Trifirò <daniele@iterative.ai>
 #
 #
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # General Public License as public by the Free Software Foundation; version 2.0
 # General Public License as public by the Free Software Foundation; version 2.0
 # or (at your option) any later version. You can redistribute it and/or
 # or (at your option) any later version. You can redistribute it and/or

+ 1 - 0
tests/test_diff_tree.py

@@ -1,6 +1,7 @@
 # test_diff_tree.py -- Tests for file and tree diff utilities.
 # test_diff_tree.py -- Tests for file and tree diff utilities.
 # Copyright (C) 2010 Google, Inc.
 # Copyright (C) 2010 Google, Inc.
 #
 #
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # General Public License as public by the Free Software Foundation; version 2.0
 # General Public License as public by the Free Software Foundation; version 2.0
 # or (at your option) any later version. You can redistribute it and/or
 # or (at your option) any later version. You can redistribute it and/or

+ 1 - 0
tests/test_fastexport.py

@@ -1,6 +1,7 @@
 # test_fastexport.py -- Fast export/import functionality
 # test_fastexport.py -- Fast export/import functionality
 # Copyright (C) 2010 Jelmer Vernooij <jelmer@jelmer.uk>
 # Copyright (C) 2010 Jelmer Vernooij <jelmer@jelmer.uk>
 #
 #
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # General Public License as public by the Free Software Foundation; version 2.0
 # General Public License as public by the Free Software Foundation; version 2.0
 # or (at your option) any later version. You can redistribute it and/or
 # or (at your option) any later version. You can redistribute it and/or

+ 1 - 0
tests/test_file.py

@@ -1,6 +1,7 @@
 # test_file.py -- Test for git files
 # test_file.py -- Test for git files
 # Copyright (C) 2010 Google, Inc.
 # Copyright (C) 2010 Google, Inc.
 #
 #
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # General Public License as public by the Free Software Foundation; version 2.0
 # General Public License as public by the Free Software Foundation; version 2.0
 # or (at your option) any later version. You can redistribute it and/or
 # or (at your option) any later version. You can redistribute it and/or

+ 1 - 0
tests/test_grafts.py

@@ -1,5 +1,6 @@
 # test_grafts.py -- Tests for graftpoints
 # test_grafts.py -- Tests for graftpoints
 #
 #
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # General Public License as public by the Free Software Foundation; version 2.0
 # General Public License as public by the Free Software Foundation; version 2.0
 # or (at your option) any later version. You can redistribute it and/or
 # or (at your option) any later version. You can redistribute it and/or

+ 1 - 0
tests/test_graph.py

@@ -1,6 +1,7 @@
 # test_graph.py -- Tests for merge base
 # test_graph.py -- Tests for merge base
 # Copyright (c) 2020 Kevin B. Hendricks, Stratford Ontario Canada
 # Copyright (c) 2020 Kevin B. Hendricks, Stratford Ontario Canada
 #
 #
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # General Public License as public by the Free Software Foundation; version 2.0
 # General Public License as public by the Free Software Foundation; version 2.0
 # or (at your option) any later version. You can redistribute it and/or
 # or (at your option) any later version. You can redistribute it and/or

+ 1 - 0
tests/test_greenthreads.py

@@ -3,6 +3,7 @@
 #
 #
 # Author: Fabien Boucher <fabien.boucher@enovance.com>
 # Author: Fabien Boucher <fabien.boucher@enovance.com>
 #
 #
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # General Public License as public by the Free Software Foundation; version 2.0
 # General Public License as public by the Free Software Foundation; version 2.0
 # or (at your option) any later version. You can redistribute it and/or
 # or (at your option) any later version. You can redistribute it and/or

+ 1 - 0
tests/test_hooks.py

@@ -1,5 +1,6 @@
 # test_hooks.py -- Tests for executing hooks
 # test_hooks.py -- Tests for executing hooks
 #
 #
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # General Public License as public by the Free Software Foundation; version 2.0
 # General Public License as public by the Free Software Foundation; version 2.0
 # or (at your option) any later version. You can redistribute it and/or
 # or (at your option) any later version. You can redistribute it and/or

+ 1 - 0
tests/test_ignore.py

@@ -1,6 +1,7 @@
 # test_ignore.py -- Tests for ignore files.
 # test_ignore.py -- Tests for ignore files.
 # Copyright (C) 2017 Jelmer Vernooij <jelmer@jelmer.uk>
 # Copyright (C) 2017 Jelmer Vernooij <jelmer@jelmer.uk>
 #
 #
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # General Public License as public by the Free Software Foundation; version 2.0
 # General Public License as public by the Free Software Foundation; version 2.0
 # or (at your option) any later version. You can redistribute it and/or
 # or (at your option) any later version. You can redistribute it and/or

+ 1 - 0
tests/test_index.py

@@ -1,6 +1,7 @@
 # test_index.py -- Tests for the git index
 # test_index.py -- Tests for the git index
 # Copyright (C) 2008-2009 Jelmer Vernooij <jelmer@jelmer.uk>
 # Copyright (C) 2008-2009 Jelmer Vernooij <jelmer@jelmer.uk>
 #
 #
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # General Public License as public by the Free Software Foundation; version 2.0
 # General Public License as public by the Free Software Foundation; version 2.0
 # or (at your option) any later version. You can redistribute it and/or
 # or (at your option) any later version. You can redistribute it and/or

+ 1 - 0
tests/test_lfs.py

@@ -1,6 +1,7 @@
 # test_lfs.py -- tests for LFS
 # test_lfs.py -- tests for LFS
 # Copyright (C) 2020 Jelmer Vernooij <jelmer@jelmer.uk>
 # Copyright (C) 2020 Jelmer Vernooij <jelmer@jelmer.uk>
 #
 #
+# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
 # General Public License as public by the Free Software Foundation; version 2.0
 # General Public License as public by the Free Software Foundation; version 2.0
 # or (at your option) any later version. You can redistribute it and/or
 # or (at your option) any later version. You can redistribute it and/or

Vissa filer visades inte eftersom för många filer har ändrats