Skip to content

Commit 9fea488

Browse files
committed
Change spelling from "commit'ish" to "commit-ish"
Since the hyphen spelling is what the official Git docs use. This change affects only docstrings.
1 parent f95d4fd commit 9fea488

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

Diff for: git/index/base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1300,7 +1300,7 @@ def reset(
13001300
but if True, this method behaves like HEAD.reset.
13011301
13021302
:param paths: if given as an iterable of absolute or repository-relative paths,
1303-
only these will be reset to their state at the given commit'ish.
1303+
only these will be reset to their state at the given commit-ish.
13041304
The paths need to exist at the commit, otherwise an exception will be
13051305
raised.
13061306

Diff for: git/objects/submodule/base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1095,7 +1095,7 @@ def set_parent_commit(self, commit: Union[Commit_ish, None], check: bool = True)
10951095
contain the .gitmodules blob.
10961096
10971097
:param commit:
1098-
Commit'ish reference pointing at the root_tree, or None to always point to the
1098+
Commit-ish reference pointing at the root_tree, or None to always point to the
10991099
most recent commit
11001100
:param check:
11011101
if True, relatively expensive checks will be performed to verify

Diff for: git/objects/submodule/root.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def update(
9191
Additionally it will detect addition and removal of submodules, which will be handled
9292
gracefully.
9393
94-
:param previous_commit: If set to a commit'ish, the commit we should use
94+
:param previous_commit: If set to a commit-ish, the commit we should use
9595
as the previous commit the HEAD pointed to before it was set to the commit it points to now.
9696
If None, it defaults to HEAD@{1} otherwise
9797
:param recursive: if True, the children of submodules will be updated as well

Diff for: git/refs/symbolic.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,7 @@ def create(
641641
642642
:param reference:
643643
The reference to which the new symbolic reference should point to.
644-
If it is a commit'ish, the symbolic ref will be detached.
644+
If it is a commit-ish, the symbolic ref will be detached.
645645
646646
:param force:
647647
if True, force creation even if a symbolic reference with that name already exists.

0 commit comments

Comments
 (0)