Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a898bef

Browse filesBrowse files
authored
Merge pull request #96 from EliahKagan/license-ambiguity
Fix top-of-file license URLs here in gitdb too
2 parents d24f019 + e0769d1 commit a898bef
Copy full SHA for a898bef

33 files changed

+40
-40
lines changed

‎gitdb/__init__.py

Copy file name to clipboardExpand all lines: gitdb/__init__.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright (C) 2010, 2011 Sebastian Thiel (byronimo@gmail.com) and contributors
22
#
33
# This module is part of GitDB and is released under
4-
# the New BSD License: http://www.opensource.org/licenses/bsd-license.php
4+
# the New BSD License: https://opensource.org/license/bsd-3-clause/
55
"""Initialize the object database module"""
66

77
import sys

‎gitdb/base.py

Copy file name to clipboardExpand all lines: gitdb/base.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright (C) 2010, 2011 Sebastian Thiel (byronimo@gmail.com) and contributors
22
#
33
# This module is part of GitDB and is released under
4-
# the New BSD License: http://www.opensource.org/licenses/bsd-license.php
4+
# the New BSD License: https://opensource.org/license/bsd-3-clause/
55
"""Module with basic data structures - they are designed to be lightweight and fast"""
66
from gitdb.util import bin_to_hex
77

‎gitdb/db/__init__.py

Copy file name to clipboardExpand all lines: gitdb/db/__init__.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright (C) 2010, 2011 Sebastian Thiel (byronimo@gmail.com) and contributors
22
#
33
# This module is part of GitDB and is released under
4-
# the New BSD License: http://www.opensource.org/licenses/bsd-license.php
4+
# the New BSD License: https://opensource.org/license/bsd-3-clause/
55

66
from gitdb.db.base import *
77
from gitdb.db.loose import *

‎gitdb/db/base.py

Copy file name to clipboardExpand all lines: gitdb/db/base.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright (C) 2010, 2011 Sebastian Thiel (byronimo@gmail.com) and contributors
22
#
33
# This module is part of GitDB and is released under
4-
# the New BSD License: http://www.opensource.org/licenses/bsd-license.php
4+
# the New BSD License: https://opensource.org/license/bsd-3-clause/
55
"""Contains implementations of database retrieveing objects"""
66
from gitdb.util import (
77
join,

‎gitdb/db/git.py

Copy file name to clipboardExpand all lines: gitdb/db/git.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright (C) 2010, 2011 Sebastian Thiel (byronimo@gmail.com) and contributors
22
#
33
# This module is part of GitDB and is released under
4-
# the New BSD License: http://www.opensource.org/licenses/bsd-license.php
4+
# the New BSD License: https://opensource.org/license/bsd-3-clause/
55
from gitdb.db.base import (
66
CompoundDB,
77
ObjectDBW,

‎gitdb/db/loose.py

Copy file name to clipboardExpand all lines: gitdb/db/loose.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright (C) 2010, 2011 Sebastian Thiel (byronimo@gmail.com) and contributors
22
#
33
# This module is part of GitDB and is released under
4-
# the New BSD License: http://www.opensource.org/licenses/bsd-license.php
4+
# the New BSD License: https://opensource.org/license/bsd-3-clause/
55
from gitdb.db.base import (
66
FileDBBase,
77
ObjectDBR,

‎gitdb/db/mem.py

Copy file name to clipboardExpand all lines: gitdb/db/mem.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright (C) 2010, 2011 Sebastian Thiel (byronimo@gmail.com) and contributors
22
#
33
# This module is part of GitDB and is released under
4-
# the New BSD License: http://www.opensource.org/licenses/bsd-license.php
4+
# the New BSD License: https://opensource.org/license/bsd-3-clause/
55
"""Contains the MemoryDatabase implementation"""
66
from gitdb.db.loose import LooseObjectDB
77
from gitdb.db.base import (

‎gitdb/db/pack.py

Copy file name to clipboardExpand all lines: gitdb/db/pack.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright (C) 2010, 2011 Sebastian Thiel (byronimo@gmail.com) and contributors
22
#
33
# This module is part of GitDB and is released under
4-
# the New BSD License: http://www.opensource.org/licenses/bsd-license.php
4+
# the New BSD License: https://opensource.org/license/bsd-3-clause/
55
"""Module containing a database to deal with packs"""
66
from gitdb.db.base import (
77
FileDBBase,

‎gitdb/db/ref.py

Copy file name to clipboardExpand all lines: gitdb/db/ref.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright (C) 2010, 2011 Sebastian Thiel (byronimo@gmail.com) and contributors
22
#
33
# This module is part of GitDB and is released under
4-
# the New BSD License: http://www.opensource.org/licenses/bsd-license.php
4+
# the New BSD License: https://opensource.org/license/bsd-3-clause/
55
import codecs
66
from gitdb.db.base import (
77
CompoundDB,

‎gitdb/exc.py

Copy file name to clipboardExpand all lines: gitdb/exc.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright (C) 2010, 2011 Sebastian Thiel (byronimo@gmail.com) and contributors
22
#
33
# This module is part of GitDB and is released under
4-
# the New BSD License: http://www.opensource.org/licenses/bsd-license.php
4+
# the New BSD License: https://opensource.org/license/bsd-3-clause/
55
"""Module with common exceptions"""
66
from gitdb.util import to_hex_sha
77

‎gitdb/fun.py

Copy file name to clipboardExpand all lines: gitdb/fun.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright (C) 2010, 2011 Sebastian Thiel (byronimo@gmail.com) and contributors
22
#
33
# This module is part of GitDB and is released under
4-
# the New BSD License: http://www.opensource.org/licenses/bsd-license.php
4+
# the New BSD License: https://opensource.org/license/bsd-3-clause/
55
"""Contains basic c-functions which usually contain performance critical code
66
Keeping this code separate from the beginning makes it easier to out-source
77
it into c later, if required"""

‎gitdb/pack.py

Copy file name to clipboardExpand all lines: gitdb/pack.py
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright (C) 2010, 2011 Sebastian Thiel (byronimo@gmail.com) and contributors
22
#
33
# This module is part of GitDB and is released under
4-
# the New BSD License: http://www.opensource.org/licenses/bsd-license.php
4+
# the New BSD License: https://opensource.org/license/bsd-3-clause/
55
"""Contains PackIndexFile and PackFile implementations"""
66
import zlib
77

@@ -263,7 +263,7 @@ def __init__(self, indexpath):
263263
def close(self):
264264
mman.force_map_handle_removal_win(self._indexpath)
265265
self._cursor = None
266-
266+
267267
def _set_cache_(self, attr):
268268
if attr == "_packfile_checksum":
269269
self._packfile_checksum = self._cursor.map()[-40:-20]
@@ -528,7 +528,7 @@ def __init__(self, packpath):
528528
def close(self):
529529
mman.force_map_handle_removal_win(self._packpath)
530530
self._cursor = None
531-
531+
532532
def _set_cache_(self, attr):
533533
# we fill the whole cache, whichever attribute gets queried first
534534
self._cursor = mman.make_cursor(self._packpath).use_region()

‎gitdb/stream.py

Copy file name to clipboardExpand all lines: gitdb/stream.py
+5-5Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright (C) 2010, 2011 Sebastian Thiel (byronimo@gmail.com) and contributors
22
#
33
# This module is part of GitDB and is released under
4-
# the New BSD License: http://www.opensource.org/licenses/bsd-license.php
4+
# the New BSD License: https://opensource.org/license/bsd-3-clause/
55

66
from io import BytesIO
77

@@ -140,7 +140,7 @@ def data(self):
140140
def close(self):
141141
"""Close our underlying stream of compressed bytes if this was allowed during initialization
142142
:return: True if we closed the underlying stream
143-
:note: can be called safely
143+
:note: can be called safely
144144
"""
145145
if self._close:
146146
if hasattr(self._m, 'close'):
@@ -287,11 +287,11 @@ def read(self, size=-1):
287287
# if we hit the end of the stream
288288
# NOTE: Behavior changed in PY2.7 onward, which requires special handling to make the tests work properly.
289289
# They are thorough, and I assume it is truly working.
290-
# Why is this logic as convoluted as it is ? Please look at the table in
290+
# Why is this logic as convoluted as it is ? Please look at the table in
291291
# https://github.com/gitpython-developers/gitdb/issues/19 to learn about the test-results.
292292
# Basically, on py2.6, you want to use branch 1, whereas on all other python version, the second branch
293-
# will be the one that works.
294-
# However, the zlib VERSIONs as well as the platform check is used to further match the entries in the
293+
# will be the one that works.
294+
# However, the zlib VERSIONs as well as the platform check is used to further match the entries in the
295295
# table in the github issue. This is it ... it was the only way I could make this work everywhere.
296296
# IT's CERTAINLY GOING TO BITE US IN THE FUTURE ... .
297297
if getattr(zlib, 'ZLIB_RUNTIME_VERSION', zlib.ZLIB_VERSION) in ('1.2.7', '1.2.5') and not sys.platform == 'darwin':

‎gitdb/test/__init__.py

Copy file name to clipboard
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Copyright (C) 2010, 2011 Sebastian Thiel (byronimo@gmail.com) and contributors
22
#
33
# This module is part of GitDB and is released under
4-
# the New BSD License: http://www.opensource.org/licenses/bsd-license.php
4+
# the New BSD License: https://opensource.org/license/bsd-3-clause/

‎gitdb/test/db/__init__.py

Copy file name to clipboard
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Copyright (C) 2010, 2011 Sebastian Thiel (byronimo@gmail.com) and contributors
22
#
33
# This module is part of GitDB and is released under
4-
# the New BSD License: http://www.opensource.org/licenses/bsd-license.php
4+
# the New BSD License: https://opensource.org/license/bsd-3-clause/

‎gitdb/test/db/lib.py

Copy file name to clipboardExpand all lines: gitdb/test/db/lib.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright (C) 2010, 2011 Sebastian Thiel (byronimo@gmail.com) and contributors
22
#
33
# This module is part of GitDB and is released under
4-
# the New BSD License: http://www.opensource.org/licenses/bsd-license.php
4+
# the New BSD License: https://opensource.org/license/bsd-3-clause/
55
"""Base classes for object db testing"""
66
from gitdb.test.lib import (
77
with_rw_directory,

‎gitdb/test/db/test_git.py

Copy file name to clipboardExpand all lines: gitdb/test/db/test_git.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright (C) 2010, 2011 Sebastian Thiel (byronimo@gmail.com) and contributors
22
#
33
# This module is part of GitDB and is released under
4-
# the New BSD License: http://www.opensource.org/licenses/bsd-license.php
4+
# the New BSD License: https://opensource.org/license/bsd-3-clause/
55
import os
66
from gitdb.test.db.lib import (
77
TestDBBase,

‎gitdb/test/db/test_loose.py

Copy file name to clipboardExpand all lines: gitdb/test/db/test_loose.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright (C) 2010, 2011 Sebastian Thiel (byronimo@gmail.com) and contributors
22
#
33
# This module is part of GitDB and is released under
4-
# the New BSD License: http://www.opensource.org/licenses/bsd-license.php
4+
# the New BSD License: https://opensource.org/license/bsd-3-clause/
55
from gitdb.test.db.lib import (
66
TestDBBase,
77
with_rw_directory

‎gitdb/test/db/test_mem.py

Copy file name to clipboardExpand all lines: gitdb/test/db/test_mem.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright (C) 2010, 2011 Sebastian Thiel (byronimo@gmail.com) and contributors
22
#
33
# This module is part of GitDB and is released under
4-
# the New BSD License: http://www.opensource.org/licenses/bsd-license.php
4+
# the New BSD License: https://opensource.org/license/bsd-3-clause/
55
from gitdb.test.db.lib import (
66
TestDBBase,
77
with_rw_directory

‎gitdb/test/db/test_pack.py

Copy file name to clipboardExpand all lines: gitdb/test/db/test_pack.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright (C) 2010, 2011 Sebastian Thiel (byronimo@gmail.com) and contributors
22
#
33
# This module is part of GitDB and is released under
4-
# the New BSD License: http://www.opensource.org/licenses/bsd-license.php
4+
# the New BSD License: https://opensource.org/license/bsd-3-clause/
55
from gitdb.test.db.lib import (
66
TestDBBase,
77
with_rw_directory,

‎gitdb/test/db/test_ref.py

Copy file name to clipboardExpand all lines: gitdb/test/db/test_ref.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright (C) 2010, 2011 Sebastian Thiel (byronimo@gmail.com) and contributors
22
#
33
# This module is part of GitDB and is released under
4-
# the New BSD License: http://www.opensource.org/licenses/bsd-license.php
4+
# the New BSD License: https://opensource.org/license/bsd-3-clause/
55
from gitdb.test.db.lib import (
66
TestDBBase,
77
with_rw_directory,

‎gitdb/test/lib.py

Copy file name to clipboardExpand all lines: gitdb/test/lib.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright (C) 2010, 2011 Sebastian Thiel (byronimo@gmail.com) and contributors
22
#
33
# This module is part of GitDB and is released under
4-
# the New BSD License: http://www.opensource.org/licenses/bsd-license.php
4+
# the New BSD License: https://opensource.org/license/bsd-3-clause/
55
"""Utilities used in ODB testing"""
66
from gitdb import OStream
77

‎gitdb/test/performance/lib.py

Copy file name to clipboardExpand all lines: gitdb/test/performance/lib.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright (C) 2010, 2011 Sebastian Thiel (byronimo@gmail.com) and contributors
22
#
33
# This module is part of GitDB and is released under
4-
# the New BSD License: http://www.opensource.org/licenses/bsd-license.php
4+
# the New BSD License: https://opensource.org/license/bsd-3-clause/
55
"""Contains library functions"""
66
from gitdb.test.lib import TestBase
77

‎gitdb/test/performance/test_pack.py

Copy file name to clipboardExpand all lines: gitdb/test/performance/test_pack.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright (C) 2010, 2011 Sebastian Thiel (byronimo@gmail.com) and contributors
22
#
33
# This module is part of GitDB and is released under
4-
# the New BSD License: http://www.opensource.org/licenses/bsd-license.php
4+
# the New BSD License: https://opensource.org/license/bsd-3-clause/
55
"""Performance tests for object store"""
66

77
from gitdb.test.performance.lib import (

‎gitdb/test/performance/test_pack_streaming.py

Copy file name to clipboardExpand all lines: gitdb/test/performance/test_pack_streaming.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright (C) 2010, 2011 Sebastian Thiel (byronimo@gmail.com) and contributors
22
#
33
# This module is part of GitDB and is released under
4-
# the New BSD License: http://www.opensource.org/licenses/bsd-license.php
4+
# the New BSD License: https://opensource.org/license/bsd-3-clause/
55
"""Specific test for pack streams only"""
66

77
from gitdb.test.performance.lib import (

‎gitdb/test/performance/test_stream.py

Copy file name to clipboardExpand all lines: gitdb/test/performance/test_stream.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright (C) 2010, 2011 Sebastian Thiel (byronimo@gmail.com) and contributors
22
#
33
# This module is part of GitDB and is released under
4-
# the New BSD License: http://www.opensource.org/licenses/bsd-license.php
4+
# the New BSD License: https://opensource.org/license/bsd-3-clause/
55
"""Performance data streaming performance"""
66

77
from gitdb.test.performance.lib import TestBigRepoR

‎gitdb/test/test_base.py

Copy file name to clipboardExpand all lines: gitdb/test/test_base.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright (C) 2010, 2011 Sebastian Thiel (byronimo@gmail.com) and contributors
22
#
33
# This module is part of GitDB and is released under
4-
# the New BSD License: http://www.opensource.org/licenses/bsd-license.php
4+
# the New BSD License: https://opensource.org/license/bsd-3-clause/
55
"""Test for object db"""
66
from gitdb.test.lib import (
77
TestBase,

‎gitdb/test/test_example.py

Copy file name to clipboardExpand all lines: gitdb/test/test_example.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright (C) 2010, 2011 Sebastian Thiel (byronimo@gmail.com) and contributors
22
#
33
# This module is part of GitDB and is released under
4-
# the New BSD License: http://www.opensource.org/licenses/bsd-license.php
4+
# the New BSD License: https://opensource.org/license/bsd-3-clause/
55
"""Module with examples from the tutorial section of the docs"""
66
import os
77
from gitdb.test.lib import TestBase

‎gitdb/test/test_pack.py

Copy file name to clipboardExpand all lines: gitdb/test/test_pack.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright (C) 2010, 2011 Sebastian Thiel (byronimo@gmail.com) and contributors
22
#
33
# This module is part of GitDB and is released under
4-
# the New BSD License: http://www.opensource.org/licenses/bsd-license.php
4+
# the New BSD License: https://opensource.org/license/bsd-3-clause/
55
"""Test everything about packs reading and writing"""
66
from gitdb.test.lib import (
77
TestBase,
@@ -242,7 +242,7 @@ def rewind_streams():
242242
# END for each info
243243
assert count == len(pack_objs)
244244
entity.close()
245-
245+
246246
def test_pack_64(self):
247247
# TODO: hex-edit a pack helping us to verify that we can handle 64 byte offsets
248248
# of course without really needing such a huge pack

‎gitdb/test/test_stream.py

Copy file name to clipboardExpand all lines: gitdb/test/test_stream.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright (C) 2010, 2011 Sebastian Thiel (byronimo@gmail.com) and contributors
22
#
33
# This module is part of GitDB and is released under
4-
# the New BSD License: http://www.opensource.org/licenses/bsd-license.php
4+
# the New BSD License: https://opensource.org/license/bsd-3-clause/
55
"""Test for object db"""
66

77
from gitdb.test.lib import (

‎gitdb/test/test_util.py

Copy file name to clipboardExpand all lines: gitdb/test/test_util.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright (C) 2010, 2011 Sebastian Thiel (byronimo@gmail.com) and contributors
22
#
33
# This module is part of GitDB and is released under
4-
# the New BSD License: http://www.opensource.org/licenses/bsd-license.php
4+
# the New BSD License: https://opensource.org/license/bsd-3-clause/
55
"""Test for object db"""
66
import tempfile
77
import os

‎gitdb/typ.py

Copy file name to clipboardExpand all lines: gitdb/typ.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright (C) 2010, 2011 Sebastian Thiel (byronimo@gmail.com) and contributors
22
#
33
# This module is part of GitDB and is released under
4-
# the New BSD License: http://www.opensource.org/licenses/bsd-license.php
4+
# the New BSD License: https://opensource.org/license/bsd-3-clause/
55
"""Module containing information about types known to the database"""
66

77
str_blob_type = b'blob'

‎gitdb/util.py

Copy file name to clipboardExpand all lines: gitdb/util.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright (C) 2010, 2011 Sebastian Thiel (byronimo@gmail.com) and contributors
22
#
33
# This module is part of GitDB and is released under
4-
# the New BSD License: http://www.opensource.org/licenses/bsd-license.php
4+
# the New BSD License: https://opensource.org/license/bsd-3-clause/
55
import binascii
66
import os
77
import mmap

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.