Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Clarify license and make module top comments more consistent#1730

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletionREADME.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -289,7 +289,7 @@ gpg --edit-key 4C08421980C9

### LICENSE

[New BSD License](https://opensource.org/license/bsd-3-clause/). See the [LICENSE file][license].
[3-Clause BSD License](https://opensource.org/license/bsd-3-clause/), also known as the New BSD License. See the [LICENSE file][license].

[contributing]: https://github.com/gitpython-developers/GitPython/blob/main/CONTRIBUTING.md
[license]: https://github.com/gitpython-developers/GitPython/blob/main/LICENSE
5 changes: 2 additions & 3 deletionsgit/__init__.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
# __init__.py
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
#
# This module is part of GitPython and is released under
#the BSD License: https://opensource.org/license/bsd-3-clause/
# This module is part of GitPython and is released under the
#3-Clause BSD License: https://opensource.org/license/bsd-3-clause/

# flake8: noqa
# @PydevCodeAnalysisIgnore
Expand Down
5 changes: 2 additions & 3 deletionsgit/cmd.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
# cmd.py
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
#
# This module is part of GitPython and is released under
#the BSD License: https://opensource.org/license/bsd-3-clause/
# This module is part of GitPython and is released under the
#3-Clause BSD License: https://opensource.org/license/bsd-3-clause/

from __future__ import annotations

Expand Down
5 changes: 2 additions & 3 deletionsgit/compat.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
# compat.py
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
#
# This module is part of GitPython and is released under
#the BSD License: https://opensource.org/license/bsd-3-clause/
# This module is part of GitPython and is released under the
#3-Clause BSD License: https://opensource.org/license/bsd-3-clause/

"""Utilities to help provide compatibility with Python 3."""

Expand Down
5 changes: 2 additions & 3 deletionsgit/config.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
# config.py
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
#
# This module is part of GitPython and is released under
#the BSD License: https://opensource.org/license/bsd-3-clause/
# This module is part of GitPython and is released under the
#3-Clause BSD License: https://opensource.org/license/bsd-3-clause/

"""Module containing module parser implementation able to properly read and write
configuration files."""
Expand Down
3 changes: 3 additions & 0 deletionsgit/db.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
# This module is part of GitPython and is released under the
# 3-Clause BSD License: https://opensource.org/license/bsd-3-clause/

"""Module with our own gitdb implementation - it uses the git command."""

from git.util import bin_to_hex, hex_to_bin
Expand Down
5 changes: 2 additions & 3 deletionsgit/diff.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
# diff.py
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
#
# This module is part of GitPython and is released under
#the BSD License: https://opensource.org/license/bsd-3-clause/
# This module is part of GitPython and is released under the
#3-Clause BSD License: https://opensource.org/license/bsd-3-clause/

importre
fromgit.cmdimporthandle_process_output
Expand Down
5 changes: 2 additions & 3 deletionsgit/exc.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
# exc.py
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
#
# This module is part of GitPython and is released under
#the BSD License: https://opensource.org/license/bsd-3-clause/
# This module is part of GitPython and is released under the
#3-Clause BSD License: https://opensource.org/license/bsd-3-clause/

"""Module containing all exceptions thrown throughout the git package."""

Expand Down
3 changes: 3 additions & 0 deletionsgit/index/__init__.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
# This module is part of GitPython and is released under the
# 3-Clause BSD License: https://opensource.org/license/bsd-3-clause/

"""Initialize the index package."""

# flake8: noqa
Expand Down
5 changes: 2 additions & 3 deletionsgit/index/base.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
# base.py
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
#
# This module is part of GitPython and is released under
#the BSD License: https://opensource.org/license/bsd-3-clause/
# This module is part of GitPython and is released under the
#3-Clause BSD License: https://opensource.org/license/bsd-3-clause/

fromcontextlibimportExitStack
importdatetime
Expand Down
3 changes: 3 additions & 0 deletionsgit/index/fun.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
# This module is part of GitPython and is released under the
# 3-Clause BSD License: https://opensource.org/license/bsd-3-clause/

# Standalone functions to accompany the index implementation and make it more versatile.
# NOTE: Autodoc hates it if this is a docstring.

Expand Down
3 changes: 3 additions & 0 deletionsgit/index/typ.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
# This module is part of GitPython and is released under the
# 3-Clause BSD License: https://opensource.org/license/bsd-3-clause/

"""Module with additional types used by the index."""

frombinasciiimportb2a_hex
Expand Down
3 changes: 3 additions & 0 deletionsgit/index/util.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
# This module is part of GitPython and is released under the
# 3-Clause BSD License: https://opensource.org/license/bsd-3-clause/

"""Module containing index utilities."""

fromfunctoolsimportwraps
Expand Down
3 changes: 3 additions & 0 deletionsgit/objects/__init__.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
# This module is part of GitPython and is released under the
# 3-Clause BSD License: https://opensource.org/license/bsd-3-clause/

"""Import all submodules' main classes into the package space."""

# flake8: noqa
Expand Down
5 changes: 2 additions & 3 deletionsgit/objects/base.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
# base.py
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
#
# This module is part of GitPython and is released under
#the BSD License: https://opensource.org/license/bsd-3-clause/
# This module is part of GitPython and is released under the
#3-Clause BSD License: https://opensource.org/license/bsd-3-clause/

fromgit.excimportWorkTreeRepositoryUnsupported
fromgit.utilimportLazyMixin,join_path_native,stream_copy,bin_to_hex
Expand Down
5 changes: 2 additions & 3 deletionsgit/objects/blob.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
# blob.py
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
#
# This module is part of GitPython and is released under
#the BSD License: https://opensource.org/license/bsd-3-clause/
# This module is part of GitPython and is released under the
#3-Clause BSD License: https://opensource.org/license/bsd-3-clause/

frommimetypesimportguess_type
from .importbase
Expand Down
5 changes: 2 additions & 3 deletionsgit/objects/commit.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
# commit.py
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
#
# This module is part of GitPython and is released under
#the BSD License: https://opensource.org/license/bsd-3-clause/
# This module is part of GitPython and is released under the
#3-Clause BSD License: https://opensource.org/license/bsd-3-clause/

importdatetime
importre
Expand Down
3 changes: 3 additions & 0 deletionsgit/objects/fun.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
# This module is part of GitPython and is released under the
# 3-Clause BSD License: https://opensource.org/license/bsd-3-clause/

"""Module with functions which are supposed to be as fast as possible."""

fromstatimportS_ISDIR
Expand Down
3 changes: 3 additions & 0 deletionsgit/objects/submodule/__init__.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
# This module is part of GitPython and is released under the
# 3-Clause BSD License: https://opensource.org/license/bsd-3-clause/

# NOTE: Cannot import anything here as the top-level __init__ has to handle
# our dependencies.
3 changes: 3 additions & 0 deletionsgit/objects/submodule/base.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
# This module is part of GitPython and is released under the
# 3-Clause BSD License: https://opensource.org/license/bsd-3-clause/

fromioimportBytesIO
importlogging
importos
Expand Down
3 changes: 3 additions & 0 deletionsgit/objects/submodule/root.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
# This module is part of GitPython and is released under the
# 3-Clause BSD License: https://opensource.org/license/bsd-3-clause/

from .baseimportSubmodule,UpdateProgress
from .utilimportfind_first_remote_branch
fromgit.excimportInvalidGitRepositoryError
Expand Down
3 changes: 3 additions & 0 deletionsgit/objects/submodule/util.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
# This module is part of GitPython and is released under the
# 3-Clause BSD License: https://opensource.org/license/bsd-3-clause/

importgit
fromgit.excimportInvalidGitRepositoryError
fromgit.configimportGitConfigParser
Expand Down
5 changes: 2 additions & 3 deletionsgit/objects/tag.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
# tag.py
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
#
# This module is part of GitPython and is released under
#the BSD License: https://opensource.org/license/bsd-3-clause/
# This module is part of GitPython and is released under the
#3-Clause BSD License: https://opensource.org/license/bsd-3-clause/

"""Module containing all Object-based types."""

Expand Down
5 changes: 2 additions & 3 deletionsgit/objects/tree.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
# tree.py
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
#
# This module is part of GitPython and is released under
#the BSD License: https://opensource.org/license/bsd-3-clause/
# This module is part of GitPython and is released under the
#3-Clause BSD License: https://opensource.org/license/bsd-3-clause/

fromgit.utilimportIterableList,join_path
importgit.diffasgit_diff
Expand Down
5 changes: 2 additions & 3 deletionsgit/objects/util.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
# util.py
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
#
# This module is part of GitPython and is released under
#the BSD License: https://opensource.org/license/bsd-3-clause/
# This module is part of GitPython and is released under the
#3-Clause BSD License: https://opensource.org/license/bsd-3-clause/

"""Module for general utility functions."""

Expand Down
4 changes: 4 additions & 0 deletionsgit/refs/__init__.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
# This module is part of GitPython and is released under the
# 3-Clause BSD License: https://opensource.org/license/bsd-3-clause/

# flake8: noqa
# Import all modules in order, fix the names they require.

from .symbolic import *
from .reference import *
from .head import *
Expand Down
3 changes: 3 additions & 0 deletionsgit/refs/head.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
# This module is part of GitPython and is released under the
# 3-Clause BSD License: https://opensource.org/license/bsd-3-clause/

fromgit.configimportGitConfigParser,SectionConstraint
fromgit.utilimportjoin_path
fromgit.excimportGitCommandError
Expand Down
3 changes: 3 additions & 0 deletionsgit/refs/log.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
# This module is part of GitPython and is released under the
# 3-Clause BSD License: https://opensource.org/license/bsd-3-clause/

frommmapimportmmap
importre
importtimeas_time
Expand Down
3 changes: 3 additions & 0 deletionsgit/refs/reference.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
# This module is part of GitPython and is released under the
# 3-Clause BSD License: https://opensource.org/license/bsd-3-clause/

fromgit.utilimport (
LazyMixin,
IterableObj,
Expand Down
3 changes: 3 additions & 0 deletionsgit/refs/remote.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
# This module is part of GitPython and is released under the
# 3-Clause BSD License: https://opensource.org/license/bsd-3-clause/

importos

fromgit.utilimportjoin_path
Expand Down
3 changes: 3 additions & 0 deletionsgit/refs/symbolic.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
# This module is part of GitPython and is released under the
# 3-Clause BSD License: https://opensource.org/license/bsd-3-clause/

from git.types import PathLike
import os

Expand Down
3 changes: 3 additions & 0 deletionsgit/refs/tag.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
# This module is part of GitPython and is released under the
# 3-Clause BSD License: https://opensource.org/license/bsd-3-clause/

from .referenceimportReference

__all__= ["TagReference","Tag"]
Expand Down
5 changes: 2 additions & 3 deletionsgit/remote.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
# remote.py
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
#
# This module is part of GitPython and is released under
#the BSD License: https://opensource.org/license/bsd-3-clause/
# This module is part of GitPython and is released under the
#3-Clause BSD License: https://opensource.org/license/bsd-3-clause/

"""Module implementing a remote object allowing easy access to git remotes."""

Expand Down
3 changes: 3 additions & 0 deletionsgit/repo/__init__.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
# This module is part of GitPython and is released under the
# 3-Clause BSD License: https://opensource.org/license/bsd-3-clause/

"""Initialize the Repo package."""

# flake8: noqa
Expand Down
5 changes: 2 additions & 3 deletionsgit/repo/base.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
# base.py
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
#
# This module is part of GitPython and is released under
#the BSD License: https://opensource.org/license/bsd-3-clause/
# This module is part of GitPython and is released under the
#3-Clause BSD License: https://opensource.org/license/bsd-3-clause/

from __future__importannotations

Expand Down
3 changes: 3 additions & 0 deletionsgit/repo/fun.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
# This module is part of GitPython and is released under the
# 3-Clause BSD License: https://opensource.org/license/bsd-3-clause/

"""Module with general repository-related functions."""

from __future__importannotations
Expand Down
4 changes: 2 additions & 2 deletionsgit/types.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
# This module is part of GitPython and is released under
#the BSD License: https://opensource.org/license/bsd-3-clause/
# This module is part of GitPython and is released under the
#3-Clause BSD License: https://opensource.org/license/bsd-3-clause/

# flake8: noqa

Expand Down
5 changes: 2 additions & 3 deletionsgit/util.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
# util.py
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
#
# This module is part of GitPython and is released under
#the BSD License: https://opensource.org/license/bsd-3-clause/
# This module is part of GitPython and is released under the
#3-Clause BSD License: https://opensource.org/license/bsd-3-clause/

fromabcimportabstractmethod
importcontextlib
Expand Down
2 changes: 1 addition & 1 deletionsetup.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -68,7 +68,7 @@ def _stamp_version(filename: str) -> None:
description="GitPython is a Python library used to interact with Git repositories",
author="Sebastian Thiel, Michael Trier",
author_email="byronimo@gmail.com, mtrier@gmail.com",
license="BSD",
license="BSD-3-Clause",
url="https://github.com/gitpython-developers/GitPython",
packages=find_packages(exclude=["test", "test.*"]),
include_package_data=True,
Expand Down
5 changes: 2 additions & 3 deletionstest/__init__.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
# __init__.py
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
#
# This module is part of GitPython and is released under
#the BSD License: https://opensource.org/license/bsd-3-clause/
# This module is part of GitPython and is released under the
#3-Clause BSD License: https://opensource.org/license/bsd-3-clause/
5 changes: 2 additions & 3 deletionstest/lib/__init__.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
# __init__.py
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
#
# This module is part of GitPython and is released under
#the BSD License: https://opensource.org/license/bsd-3-clause/
# This module is part of GitPython and is released under the
#3-Clause BSD License: https://opensource.org/license/bsd-3-clause/

# flake8: noqa
importinspect
Expand Down
5 changes: 2 additions & 3 deletionstest/lib/helper.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
# helper.py
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
#
# This module is part of GitPython and is released under
#the BSD License: https://opensource.org/license/bsd-3-clause/
# This module is part of GitPython and is released under the
#3-Clause BSD License: https://opensource.org/license/bsd-3-clause/

importcontextlib
fromfunctoolsimportwraps
Expand Down
3 changes: 3 additions & 0 deletionstest/performance/lib.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
# This module is part of GitPython and is released under the
# 3-Clause BSD License: https://opensource.org/license/bsd-3-clause/

"""Support library for tests."""

importlogging
Expand Down
4 changes: 2 additions & 2 deletionstest/performance/test_commit.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
#
# This module is part of GitPython and is released under
#the BSD License: https://opensource.org/license/bsd-3-clause/
# This module is part of GitPython and is released under the
#3-Clause BSD License: https://opensource.org/license/bsd-3-clause/

"""Performance tests for commits (iteration, traversal, and serialization)."""

Expand Down
3 changes: 3 additions & 0 deletionstest/performance/test_odb.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
# This module is part of GitPython and is released under the
# 3-Clause BSD License: https://opensource.org/license/bsd-3-clause/

"""Performance tests for object store."""

importsys
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp