File tree 41 files changed +43
-44
lines changed
Filter options
Some content is hidden Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner 41 files changed +43
-44
lines changed
Original file line number Diff line number Diff line change 2
2
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
3
3
#
4
4
# This module is part of GitPython and is released under
5
- # the BSD License: http ://www. opensource.org/licenses /bsd-license.php
5
+ # the BSD License: https ://opensource.org/license /bsd-3-clause/
6
6
# flake8: noqa
7
7
# @PydevCodeAnalysisIgnore
8
8
from git .exc import * # @NoMove @IgnorePep8
Original file line number Diff line number Diff line change 2
2
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
3
3
#
4
4
# This module is part of GitPython and is released under
5
- # the BSD License: http ://www. opensource.org/licenses /bsd-license.php
5
+ # the BSD License: https ://opensource.org/license /bsd-3-clause/
6
6
from __future__ import annotations
7
7
import re
8
8
import contextlib
Original file line number Diff line number Diff line change 3
3
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
4
4
#
5
5
# This module is part of GitPython and is released under
6
- # the BSD License: http ://www. opensource.org/licenses /bsd-license.php
6
+ # the BSD License: https ://opensource.org/license /bsd-3-clause/
7
7
"""utilities to help provide compatibility with python 3"""
8
8
# flake8: noqa
9
9
Original file line number Diff line number Diff line change 2
2
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
3
3
#
4
4
# This module is part of GitPython and is released under
5
- # the BSD License: http ://www. opensource.org/licenses /bsd-license.php
5
+ # the BSD License: https ://opensource.org/license /bsd-3-clause/
6
6
"""Module containing module parser implementation able to properly read and write
7
7
configuration files"""
8
8
Original file line number Diff line number Diff line change 2
2
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
3
3
#
4
4
# This module is part of GitPython and is released under
5
- # the BSD License: http ://www. opensource.org/licenses /bsd-license.php
5
+ # the BSD License: https ://opensource.org/license /bsd-3-clause/
6
6
7
7
import re
8
8
from git .cmd import handle_process_output
Original file line number Diff line number Diff line change 2
2
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
3
3
#
4
4
# This module is part of GitPython and is released under
5
- # the BSD License: http ://www. opensource.org/licenses /bsd-license.php
5
+ # the BSD License: https ://opensource.org/license /bsd-3-clause/
6
6
""" Module containing all exceptions thrown throughout the git package, """
7
7
8
8
from gitdb .exc import BadName # NOQA @UnusedWildImport skipcq: PYL-W0401, PYL-W0614
Original file line number Diff line number Diff line change 2
2
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
3
3
#
4
4
# This module is part of GitPython and is released under
5
- # the BSD License: http ://www. opensource.org/licenses /bsd-license.php
5
+ # the BSD License: https ://opensource.org/license /bsd-3-clause/
6
6
7
7
from contextlib import ExitStack
8
8
import datetime
Original file line number Diff line number Diff line change 2
2
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
3
3
#
4
4
# This module is part of GitPython and is released under
5
- # the BSD License: http ://www. opensource.org/licenses /bsd-license.php
5
+ # the BSD License: https ://opensource.org/license /bsd-3-clause/
6
6
7
7
from git .exc import WorkTreeRepositoryUnsupported
8
8
from git .util import LazyMixin , join_path_native , stream_copy , bin_to_hex
Original file line number Diff line number Diff line change 2
2
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
3
3
#
4
4
# This module is part of GitPython and is released under
5
- # the BSD License: http ://www. opensource.org/licenses /bsd-license.php
5
+ # the BSD License: https ://opensource.org/license /bsd-3-clause/
6
6
from mimetypes import guess_type
7
7
from . import base
8
8
Original file line number Diff line number Diff line change 2
2
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
3
3
#
4
4
# This module is part of GitPython and is released under
5
- # the BSD License: http ://www. opensource.org/licenses /bsd-license.php
5
+ # the BSD License: https ://opensource.org/license /bsd-3-clause/
6
6
import datetime
7
7
import re
8
8
from subprocess import Popen , PIPE
Original file line number Diff line number Diff line change 2
2
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
3
3
#
4
4
# This module is part of GitPython and is released under
5
- # the BSD License: http ://www. opensource.org/licenses /bsd-license.php
5
+ # the BSD License: https ://opensource.org/license /bsd-3-clause/
6
6
""" Module containing all object based types. """
7
7
from . import base
8
8
from .util import get_object_type_by_name , parse_actor_and_date
Original file line number Diff line number Diff line change 2
2
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
3
3
#
4
4
# This module is part of GitPython and is released under
5
- # the BSD License: http ://www. opensource.org/licenses /bsd-license.php
5
+ # the BSD License: https ://opensource.org/license /bsd-3-clause/
6
6
7
7
from git .util import IterableList , join_path
8
8
import git .diff as git_diff
Original file line number Diff line number Diff line change 2
2
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
3
3
#
4
4
# This module is part of GitPython and is released under
5
- # the BSD License: http ://www. opensource.org/licenses /bsd-license.php
5
+ # the BSD License: https ://opensource.org/license /bsd-3-clause/
6
6
"""Module for general utility functions"""
7
7
# flake8: noqa F401
8
8
Original file line number Diff line number Diff line change 2
2
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
3
3
#
4
4
# This module is part of GitPython and is released under
5
- # the BSD License: http ://www. opensource.org/licenses /bsd-license.php
5
+ # the BSD License: https ://opensource.org/license /bsd-3-clause/
6
6
7
7
# Module implementing a remote object allowing easy access to git remotes
8
8
import logging
Original file line number Diff line number Diff line change 2
2
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
3
3
#
4
4
# This module is part of GitPython and is released under
5
- # the BSD License: http ://www. opensource.org/licenses /bsd-license.php
5
+ # the BSD License: https ://opensource.org/license /bsd-3-clause/
6
6
from __future__ import annotations
7
7
import logging
8
8
import os
Original file line number Diff line number Diff line change 1
1
# -*- coding: utf-8 -*-
2
2
# This module is part of GitPython and is released under
3
- # the BSD License: http ://www. opensource.org/licenses /bsd-license.php
3
+ # the BSD License: https ://opensource.org/license /bsd-3-clause/
4
4
# flake8: noqa
5
5
6
6
import os
Original file line number Diff line number Diff line change 2
2
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
3
3
#
4
4
# This module is part of GitPython and is released under
5
- # the BSD License: http ://www. opensource.org/licenses /bsd-license.php
5
+ # the BSD License: https ://opensource.org/license /bsd-3-clause/
6
6
7
7
from abc import abstractmethod
8
8
import os .path as osp
Original file line number Diff line number Diff line change 2
2
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
3
3
#
4
4
# This module is part of GitPython and is released under
5
- # the BSD License: http ://www. opensource.org/licenses /bsd-license.php
5
+ # the BSD License: https ://opensource.org/license /bsd-3-clause/
Original file line number Diff line number Diff line change 2
2
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
3
3
#
4
4
# This module is part of GitPython and is released under
5
- # the BSD License: http ://www. opensource.org/licenses /bsd-license.php
5
+ # the BSD License: https ://opensource.org/license /bsd-3-clause/
6
6
7
7
# flake8: noqa
8
8
import inspect
Original file line number Diff line number Diff line change 2
2
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
3
3
#
4
4
# This module is part of GitPython and is released under
5
- # the BSD License: http ://www. opensource.org/licenses /bsd-license.php
5
+ # the BSD License: https ://opensource.org/license /bsd-3-clause/
6
6
import contextlib
7
7
from functools import wraps
8
8
import gc
Original file line number Diff line number Diff line change 2
2
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
3
3
#
4
4
# This module is part of GitPython and is released under
5
- # the BSD License: http ://www. opensource.org/licenses /bsd-license.php
5
+ # the BSD License: https ://opensource.org/license /bsd-3-clause/
6
6
from io import BytesIO
7
7
from time import time
8
8
import sys
Original file line number Diff line number Diff line change 2
2
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
3
3
#
4
4
# This module is part of GitPython and is released under
5
- # the BSD License: http ://www. opensource.org/licenses /bsd-license.php
5
+ # the BSD License: https ://opensource.org/license /bsd-3-clause/
6
6
7
7
from test .lib import TestBase
8
8
from git import Actor
Original file line number Diff line number Diff line change 3
3
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
4
4
#
5
5
# This module is part of GitPython and is released under
6
- # the BSD License: http ://www. opensource.org/licenses /bsd-license.php
6
+ # the BSD License: https ://opensource.org/license /bsd-3-clause/
7
7
import os
8
8
import sys
9
9
import tempfile
Original file line number Diff line number Diff line change 2
2
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
3
3
#
4
4
# This module is part of GitPython and is released under
5
- # the BSD License: http ://www. opensource.org/licenses /bsd-license.php
5
+ # the BSD License: https ://opensource.org/license /bsd-3-clause/
6
6
7
7
from test .lib import TestBase
8
8
from git import Blob
Original file line number Diff line number Diff line change 1
1
# -*- coding: utf-8 -*-
2
2
# This module is part of GitPython and is released under
3
- # the BSD License: http ://www. opensource.org/licenses /bsd-license.php
3
+ # the BSD License: https ://opensource.org/license /bsd-3-clause/
4
4
5
5
from pathlib import Path
6
6
import re
Original file line number Diff line number Diff line change 3
3
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
4
4
#
5
5
# This module is part of GitPython and is released under
6
- # the BSD License: http ://www. opensource.org/licenses /bsd-license.php
6
+ # the BSD License: https ://opensource.org/license /bsd-3-clause/
7
7
import copy
8
8
from datetime import datetime
9
9
from io import BytesIO
Original file line number Diff line number Diff line change 2
2
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
3
3
#
4
4
# This module is part of GitPython and is released under
5
- # the BSD License: http ://www. opensource.org/licenses /bsd-license.php
5
+ # the BSD License: https ://opensource.org/license /bsd-3-clause/
6
6
7
7
import glob
8
8
import io
Original file line number Diff line number Diff line change 2
2
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
3
3
#
4
4
# This module is part of GitPython and is released under
5
- # the BSD License: http ://www. opensource.org/licenses /bsd-license.php
5
+ # the BSD License: https ://opensource.org/license /bsd-3-clause/
6
6
from git .db import GitCmdObjectDB
7
7
from git .exc import BadObject
8
8
from test .lib import TestBase
Original file line number Diff line number Diff line change 3
3
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
4
4
#
5
5
# This module is part of GitPython and is released under
6
- # the BSD License: http ://www. opensource.org/licenses /bsd-license.php
6
+ # the BSD License: https ://opensource.org/license /bsd-3-clause/
7
7
import ddt
8
8
import shutil
9
9
import tempfile
@@ -414,7 +414,7 @@ def test_diff_interface(self):
414
414
415
415
@with_rw_directory
416
416
def test_rename_override (self , rw_dir ):
417
- """Test disabling of diff rename detection"""
417
+ """Test disabling of diff rename detection"""
418
418
419
419
# create and commit file_a.txt
420
420
repo = Repo .init (rw_dir )
@@ -480,4 +480,3 @@ def test_rename_override(self, rw_dir):
480
480
self .assertEqual (True , diff .renamed_file )
481
481
self .assertEqual ('file_a.txt' , diff .rename_from )
482
482
self .assertEqual ('file_b.txt' , diff .rename_to )
483
-
Original file line number Diff line number Diff line change 3
3
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
4
4
#
5
5
# This module is part of GitPython and is released under
6
- # the BSD License: http ://www. opensource.org/licenses /bsd-license.php
6
+ # the BSD License: https ://opensource.org/license /bsd-3-clause/
7
7
import os
8
8
import sys
9
9
Original file line number Diff line number Diff line change 3
3
# Copyright (C) 2008, 2009, 2016 Michael Trier (mtrier@gmail.com) and contributors
4
4
#
5
5
# This module is part of GitPython and is released under
6
- # the BSD License: http ://www. opensource.org/licenses /bsd-license.php
6
+ # the BSD License: https ://opensource.org/license /bsd-3-clause/
7
7
8
8
9
9
import re
Original file line number Diff line number Diff line change 3
3
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
4
4
#
5
5
# This module is part of GitPython and is released under
6
- # the BSD License: http ://www. opensource.org/licenses /bsd-license.php
6
+ # the BSD License: https ://opensource.org/license /bsd-3-clause/
7
7
import os
8
8
import shutil
9
9
import subprocess
Original file line number Diff line number Diff line change 3
3
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
4
4
#
5
5
# This module is part of GitPython and is released under
6
- # the BSD License: http ://www. opensource.org/licenses /bsd-license.php
6
+ # the BSD License: https ://opensource.org/license /bsd-3-clause/
7
7
8
8
from io import BytesIO
9
9
import os
@@ -953,4 +953,4 @@ def test_index_add_pathlike(self, rw_repo):
953
953
file = git_dir / "file.txt"
954
954
file .touch ()
955
955
956
- rw_repo .index .add (file )
956
+ rw_repo .index .add (file )
Original file line number Diff line number Diff line change 1
1
# This module is part of GitPython and is released under
2
- # the BSD License: http ://www. opensource.org/licenses /bsd-license.php
2
+ # the BSD License: https ://opensource.org/license /bsd-3-clause/
3
3
4
4
import ast
5
5
import os
Original file line number Diff line number Diff line change 2
2
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
3
3
#
4
4
# This module is part of GitPython and is released under
5
- # the BSD License: http ://www. opensource.org/licenses /bsd-license.php
5
+ # the BSD License: https ://opensource.org/license /bsd-3-clause/
6
6
7
7
from itertools import chain
8
8
from pathlib import Path
Original file line number Diff line number Diff line change 2
2
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
3
3
#
4
4
# This module is part of GitPython and is released under
5
- # the BSD License: http ://www. opensource.org/licenses /bsd-license.php
5
+ # the BSD License: https ://opensource.org/license /bsd-3-clause/
6
6
7
7
import random
8
8
import tempfile
Original file line number Diff line number Diff line change 3
3
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
4
4
#
5
5
# This module is part of GitPython and is released under
6
- # the BSD License: http ://www. opensource.org/licenses /bsd-license.php
6
+ # the BSD License: https ://opensource.org/license /bsd-3-clause/
7
7
import glob
8
8
import io
9
9
from io import BytesIO
Original file line number Diff line number Diff line change 2
2
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
3
3
#
4
4
# This module is part of GitPython and is released under
5
- # the BSD License: http ://www. opensource.org/licenses /bsd-license.php
5
+ # the BSD License: https ://opensource.org/license /bsd-3-clause/
6
6
7
7
from test .lib import TestBase , fixture
8
8
from git import Stats
Original file line number Diff line number Diff line change 1
1
# -*- coding: utf-8 -*-
2
2
# This module is part of GitPython and is released under
3
- # the BSD License: http ://www. opensource.org/licenses /bsd-license.php
3
+ # the BSD License: https ://opensource.org/license /bsd-3-clause/
4
4
import contextlib
5
5
import os
6
6
import shutil
Original file line number Diff line number Diff line change 2
2
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
3
3
#
4
4
# This module is part of GitPython and is released under
5
- # the BSD License: http ://www. opensource.org/licenses /bsd-license.php
5
+ # the BSD License: https ://opensource.org/license /bsd-3-clause/
6
6
7
7
from io import BytesIO
8
8
from unittest import skipIf
Original file line number Diff line number Diff line change 2
2
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
3
3
#
4
4
# This module is part of GitPython and is released under
5
- # the BSD License: http ://www. opensource.org/licenses /bsd-license.php
5
+ # the BSD License: https ://opensource.org/license /bsd-3-clause/
6
6
7
7
import os
8
8
import pickle
You can’t perform that action at this time.
0 commit comments