summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README2
-rw-r--r--lib/git/__init__.py6
-rw-r--r--lib/git/actor.py6
-rw-r--r--lib/git/blob.py6
-rw-r--r--lib/git/cmd.py6
-rw-r--r--lib/git/commit.py6
-rw-r--r--lib/git/diff.py6
-rw-r--r--lib/git/errors.py6
-rw-r--r--lib/git/head.py6
-rw-r--r--lib/git/lazy.py6
-rw-r--r--lib/git/method_missing.py10
-rw-r--r--lib/git/repo.py6
-rw-r--r--lib/git/stats.py6
-rw-r--r--lib/git/tag.py6
-rw-r--r--lib/git/tree.py6
-rw-r--r--lib/git/utils.py6
-rw-r--r--test/__init__.py5
-rw-r--r--test/git/__init__.py5
-rw-r--r--test/git/test_actor.py6
-rw-r--r--test/git/test_blob.py6
-rw-r--r--test/git/test_commit.py6
-rw-r--r--test/git/test_diff.py6
-rw-r--r--test/git/test_git.py6
-rw-r--r--test/git/test_head.py6
-rw-r--r--test/git/test_repo.py6
-rw-r--r--test/git/test_stats.py6
-rw-r--r--test/git/test_tag.py6
-rw-r--r--test/git/test_tree.py6
-rw-r--r--test/git/test_utils.py6
-rw-r--r--test/testlib/__init__.py6
-rw-r--r--test/testlib/asserts.py6
-rw-r--r--test/testlib/helper.py6
32 files changed, 188 insertions, 2 deletions
diff --git a/README b/README
index be435edb..ded718b9 100644
--- a/README
+++ b/README
@@ -9,7 +9,7 @@ Tom Preston-Werner and Chris Wanstrath.
.. _grit: http://grit.rubyforge.org
-The ``method_missing`` stuff was `taken from this blog post`_.
+The idea for the ``method_missing`` stuff was `taken from this blog post`_.
.. _taken from this blog post: http://blog.iffy.us/?p=43
diff --git a/lib/git/__init__.py b/lib/git/__init__.py
index 7de5088a..3e2558c2 100644
--- a/lib/git/__init__.py
+++ b/lib/git/__init__.py
@@ -1,3 +1,9 @@
+# __init__.py
+# Copyright (C) 2008 Michael Trier (mtrier@gmail.com) and contributors
+#
+# This module is part of GitPython and is released under
+# the BSD License: http://www.opensource.org/licenses/bsd-license.php
+
import os
import inspect
diff --git a/lib/git/actor.py b/lib/git/actor.py
index ed21d8ba..afd94016 100644
--- a/lib/git/actor.py
+++ b/lib/git/actor.py
@@ -1,3 +1,9 @@
+# actor.py
+# Copyright (C) 2008 Michael Trier (mtrier@gmail.com) and contributors
+#
+# This module is part of GitPython and is released under
+# the BSD License: http://www.opensource.org/licenses/bsd-license.php
+
import re
class Actor(object):
diff --git a/lib/git/blob.py b/lib/git/blob.py
index 134cb93d..a6768afb 100644
--- a/lib/git/blob.py
+++ b/lib/git/blob.py
@@ -1,3 +1,9 @@
+# blob.py
+# Copyright (C) 2008 Michael Trier (mtrier@gmail.com) and contributors
+#
+# This module is part of GitPython and is released under
+# the BSD License: http://www.opensource.org/licenses/bsd-license.php
+
import mimetypes
import os
import re
diff --git a/lib/git/cmd.py b/lib/git/cmd.py
index 4fa22fd9..a6e8f6cc 100644
--- a/lib/git/cmd.py
+++ b/lib/git/cmd.py
@@ -1,3 +1,9 @@
+# cmd.py
+# Copyright (C) 2008 Michael Trier (mtrier@gmail.com) and contributors
+#
+# This module is part of GitPython and is released under
+# the BSD License: http://www.opensource.org/licenses/bsd-license.php
+
import os
import subprocess
import re
diff --git a/lib/git/commit.py b/lib/git/commit.py
index fb52e42a..2835e07f 100644
--- a/lib/git/commit.py
+++ b/lib/git/commit.py
@@ -1,3 +1,9 @@
+# commit.py
+# Copyright (C) 2008 Michael Trier (mtrier@gmail.com) and contributors
+#
+# This module is part of GitPython and is released under
+# the BSD License: http://www.opensource.org/licenses/bsd-license.php
+
import re
import time
diff --git a/lib/git/diff.py b/lib/git/diff.py
index 075b0f87..9285465a 100644
--- a/lib/git/diff.py
+++ b/lib/git/diff.py
@@ -1,3 +1,9 @@
+# diff.py
+# Copyright (C) 2008 Michael Trier (mtrier@gmail.com) and contributors
+#
+# This module is part of GitPython and is released under
+# the BSD License: http://www.opensource.org/licenses/bsd-license.php
+
import re
import commit
diff --git a/lib/git/errors.py b/lib/git/errors.py
index f0a4be1a..0cf29c79 100644
--- a/lib/git/errors.py
+++ b/lib/git/errors.py
@@ -1,3 +1,9 @@
+# errors.py
+# Copyright (C) 2008 Michael Trier (mtrier@gmail.com) and contributors
+#
+# This module is part of GitPython and is released under
+# the BSD License: http://www.opensource.org/licenses/bsd-license.php
+
class InvalidGitRepositoryError(Exception):
pass
diff --git a/lib/git/head.py b/lib/git/head.py
index 58191fd8..f35d1680 100644
--- a/lib/git/head.py
+++ b/lib/git/head.py
@@ -1,3 +1,9 @@
+# head.py
+# Copyright (C) 2008 Michael Trier (mtrier@gmail.com) and contributors
+#
+# This module is part of GitPython and is released under
+# the BSD License: http://www.opensource.org/licenses/bsd-license.php
+
import commit
class Head(object):
diff --git a/lib/git/lazy.py b/lib/git/lazy.py
index 66e56c2b..7f39c304 100644
--- a/lib/git/lazy.py
+++ b/lib/git/lazy.py
@@ -1,3 +1,9 @@
+# lazy.py
+# Copyright (C) 2008 Michael Trier (mtrier@gmail.com) and contributors
+#
+# This module is part of GitPython and is released under
+# the BSD License: http://www.opensource.org/licenses/bsd-license.php
+
class LazyMixin(object):
lazy_properties = []
diff --git a/lib/git/method_missing.py b/lib/git/method_missing.py
index 06414cc4..250fcc6d 100644
--- a/lib/git/method_missing.py
+++ b/lib/git/method_missing.py
@@ -1,8 +1,16 @@
+# method_missing.py
+# Copyright (C) 2008 Michael Trier (mtrier@gmail.com) and contributors
+# Portions derived from http://blog.iffy.us/?p=43
+#
+# This module is part of GitPython and is released under
+# the BSD License: http://www.opensource.org/licenses/bsd-license.php
+
class MethodMissingMixin(object):
"""
A Mixin' to implement the 'method_missing' Ruby-like protocol.
- This was `taken from a blog post <http://blog.iffy.us/?p=43>`_
+ Ideas were `taken from the following blog post
+ <http://blog.iffy.us/?p=43>`_
"""
def __getattr__(self, attr):
class MethodMissing(object):
diff --git a/lib/git/repo.py b/lib/git/repo.py
index f1a5a8ee..c03adeba 100644
--- a/lib/git/repo.py
+++ b/lib/git/repo.py
@@ -1,3 +1,9 @@
+# repo.py
+# Copyright (C) 2008 Michael Trier (mtrier@gmail.com) and contributors
+#
+# This module is part of GitPython and is released under
+# the BSD License: http://www.opensource.org/licenses/bsd-license.php
+
import os
import re
from errors import InvalidGitRepositoryError, NoSuchPathError
diff --git a/lib/git/stats.py b/lib/git/stats.py
index 76f6410f..97d2bbde 100644
--- a/lib/git/stats.py
+++ b/lib/git/stats.py
@@ -1,3 +1,9 @@
+# stats.py
+# Copyright (C) 2008 Michael Trier (mtrier@gmail.com) and contributors
+#
+# This module is part of GitPython and is released under
+# the BSD License: http://www.opensource.org/licenses/bsd-license.php
+
class Stats(object):
def __init__(self, repo, total, files):
self.repo = repo
diff --git a/lib/git/tag.py b/lib/git/tag.py
index fb119f76..6b0e63e0 100644
--- a/lib/git/tag.py
+++ b/lib/git/tag.py
@@ -1,3 +1,9 @@
+# tag.py
+# Copyright (C) 2008 Michael Trier (mtrier@gmail.com) and contributors
+#
+# This module is part of GitPython and is released under
+# the BSD License: http://www.opensource.org/licenses/bsd-license.php
+
from commit import Commit
class Tag(object):
diff --git a/lib/git/tree.py b/lib/git/tree.py
index 9c4dab1d..daa2a49e 100644
--- a/lib/git/tree.py
+++ b/lib/git/tree.py
@@ -1,3 +1,9 @@
+# tree.py
+# Copyright (C) 2008 Michael Trier (mtrier@gmail.com) and contributors
+#
+# This module is part of GitPython and is released under
+# the BSD License: http://www.opensource.org/licenses/bsd-license.php
+
import os
from lazy import LazyMixin
import blob
diff --git a/lib/git/utils.py b/lib/git/utils.py
index 656e783c..7709b4eb 100644
--- a/lib/git/utils.py
+++ b/lib/git/utils.py
@@ -1,3 +1,9 @@
+# utils.py
+# Copyright (C) 2008 Michael Trier (mtrier@gmail.com) and contributors
+#
+# This module is part of GitPython and is released under
+# the BSD License: http://www.opensource.org/licenses/bsd-license.php
+
import os
def dashify(string):
diff --git a/test/__init__.py b/test/__init__.py
index e69de29b..9255d20b 100644
--- a/test/__init__.py
+++ b/test/__init__.py
@@ -0,0 +1,5 @@
+# __init__.py
+# Copyright (C) 2008 Michael Trier (mtrier@gmail.com) and contributors
+#
+# This module is part of GitPython and is released under
+# the BSD License: http://www.opensource.org/licenses/bsd-license.php
diff --git a/test/git/__init__.py b/test/git/__init__.py
index e69de29b..9255d20b 100644
--- a/test/git/__init__.py
+++ b/test/git/__init__.py
@@ -0,0 +1,5 @@
+# __init__.py
+# Copyright (C) 2008 Michael Trier (mtrier@gmail.com) and contributors
+#
+# This module is part of GitPython and is released under
+# the BSD License: http://www.opensource.org/licenses/bsd-license.php
diff --git a/test/git/test_actor.py b/test/git/test_actor.py
index 7468c3ff..3bb92a09 100644
--- a/test/git/test_actor.py
+++ b/test/git/test_actor.py
@@ -1,3 +1,9 @@
+# test_actor.py
+# Copyright (C) 2008 Michael Trier (mtrier@gmail.com) and contributors
+#
+# This module is part of GitPython and is released under
+# the BSD License: http://www.opensource.org/licenses/bsd-license.php
+
import os
from test.testlib import *
from git import *
diff --git a/test/git/test_blob.py b/test/git/test_blob.py
index 05d68285..b7f44ff0 100644
--- a/test/git/test_blob.py
+++ b/test/git/test_blob.py
@@ -1,3 +1,9 @@
+# test_blob.py
+# Copyright (C) 2008 Michael Trier (mtrier@gmail.com) and contributors
+#
+# This module is part of GitPython and is released under
+# the BSD License: http://www.opensource.org/licenses/bsd-license.php
+
import time
from test.testlib import *
from git import *
diff --git a/test/git/test_commit.py b/test/git/test_commit.py
index 4504a360..ac807dc2 100644
--- a/test/git/test_commit.py
+++ b/test/git/test_commit.py
@@ -1,3 +1,9 @@
+# test_commit.py
+# Copyright (C) 2008 Michael Trier (mtrier@gmail.com) and contributors
+#
+# This module is part of GitPython and is released under
+# the BSD License: http://www.opensource.org/licenses/bsd-license.php
+
from test.testlib import *
from git import *
diff --git a/test/git/test_diff.py b/test/git/test_diff.py
index 7b24cd97..9b7e9c73 100644
--- a/test/git/test_diff.py
+++ b/test/git/test_diff.py
@@ -1,3 +1,9 @@
+# test_diff.py
+# Copyright (C) 2008 Michael Trier (mtrier@gmail.com) and contributors
+#
+# This module is part of GitPython and is released under
+# the BSD License: http://www.opensource.org/licenses/bsd-license.php
+
from test.testlib import *
from git import *
diff --git a/test/git/test_git.py b/test/git/test_git.py
index 0c074ec3..cc732032 100644
--- a/test/git/test_git.py
+++ b/test/git/test_git.py
@@ -1,3 +1,9 @@
+# test_git.py
+# Copyright (C) 2008 Michael Trier (mtrier@gmail.com) and contributors
+#
+# This module is part of GitPython and is released under
+# the BSD License: http://www.opensource.org/licenses/bsd-license.php
+
import os
from test.testlib import *
from git import Git, GitCommandError
diff --git a/test/git/test_head.py b/test/git/test_head.py
index 0e5592d3..6d32b2d3 100644
--- a/test/git/test_head.py
+++ b/test/git/test_head.py
@@ -1,3 +1,9 @@
+# test_head.py
+# Copyright (C) 2008 Michael Trier (mtrier@gmail.com) and contributors
+#
+# This module is part of GitPython and is released under
+# the BSD License: http://www.opensource.org/licenses/bsd-license.php
+
from test.testlib import *
from git import *
diff --git a/test/git/test_repo.py b/test/git/test_repo.py
index 67008d72..46c5d00c 100644
--- a/test/git/test_repo.py
+++ b/test/git/test_repo.py
@@ -1,3 +1,9 @@
+# test_repo.py
+# Copyright (C) 2008 Michael Trier (mtrier@gmail.com) and contributors
+#
+# This module is part of GitPython and is released under
+# the BSD License: http://www.opensource.org/licenses/bsd-license.php
+
import os
import time
from test.testlib import *
diff --git a/test/git/test_stats.py b/test/git/test_stats.py
index abe129a8..4546eea1 100644
--- a/test/git/test_stats.py
+++ b/test/git/test_stats.py
@@ -1,3 +1,9 @@
+# test_stats.py
+# Copyright (C) 2008 Michael Trier (mtrier@gmail.com) and contributors
+#
+# This module is part of GitPython and is released under
+# the BSD License: http://www.opensource.org/licenses/bsd-license.php
+
from test.testlib import *
from git import *
diff --git a/test/git/test_tag.py b/test/git/test_tag.py
index 30311f52..6626ec65 100644
--- a/test/git/test_tag.py
+++ b/test/git/test_tag.py
@@ -1,3 +1,9 @@
+# test_tag.py
+# Copyright (C) 2008 Michael Trier (mtrier@gmail.com) and contributors
+#
+# This module is part of GitPython and is released under
+# the BSD License: http://www.opensource.org/licenses/bsd-license.php
+
from mock import *
from test.testlib import *
from git import *
diff --git a/test/git/test_tree.py b/test/git/test_tree.py
index e91e57ba..2c7fdd58 100644
--- a/test/git/test_tree.py
+++ b/test/git/test_tree.py
@@ -1,3 +1,9 @@
+# test_tree.py
+# Copyright (C) 2008 Michael Trier (mtrier@gmail.com) and contributors
+#
+# This module is part of GitPython and is released under
+# the BSD License: http://www.opensource.org/licenses/bsd-license.php
+
from test.testlib import *
from git import *
diff --git a/test/git/test_utils.py b/test/git/test_utils.py
index b8fcfb3e..e6baf3ea 100644
--- a/test/git/test_utils.py
+++ b/test/git/test_utils.py
@@ -1,3 +1,9 @@
+# test_utils.py
+# Copyright (C) 2008 Michael Trier (mtrier@gmail.com) and contributors
+#
+# This module is part of GitPython and is released under
+# the BSD License: http://www.opensource.org/licenses/bsd-license.php
+
import os
from test.testlib import *
from git import *
diff --git a/test/testlib/__init__.py b/test/testlib/__init__.py
index 3662435d..bfa38d6e 100644
--- a/test/testlib/__init__.py
+++ b/test/testlib/__init__.py
@@ -1,3 +1,9 @@
+# __init__.py
+# Copyright (C) 2008 Michael Trier (mtrier@gmail.com) and contributors
+#
+# This module is part of GitPython and is released under
+# the BSD License: http://www.opensource.org/licenses/bsd-license.php
+
import inspect
from mock import *
from asserts import *
diff --git a/test/testlib/asserts.py b/test/testlib/asserts.py
index 33dd843b..5021e7c0 100644
--- a/test/testlib/asserts.py
+++ b/test/testlib/asserts.py
@@ -1,3 +1,9 @@
+# asserts.py
+# Copyright (C) 2008 Michael Trier (mtrier@gmail.com) and contributors
+#
+# This module is part of GitPython and is released under
+# the BSD License: http://www.opensource.org/licenses/bsd-license.php
+
import re
import unittest
from nose import tools
diff --git a/test/testlib/helper.py b/test/testlib/helper.py
index ccc7f0ac..3d6b33dc 100644
--- a/test/testlib/helper.py
+++ b/test/testlib/helper.py
@@ -1,3 +1,9 @@
+# helper.py
+# Copyright (C) 2008 Michael Trier (mtrier@gmail.com) and contributors
+#
+# This module is part of GitPython and is released under
+# the BSD License: http://www.opensource.org/licenses/bsd-license.php
+
import os
GIT_REPO = os.path.dirname(os.path.dirname(os.path.dirname(__file__)))