@@ -134,7 +134,7 @@ def _iter_packed_refs(cls, repo: "Repo") -> Iterator[Tuple[str, str]]:
134
134
# that can go on this line, as per comments in git file
135
135
# refs/packed-backend.c
136
136
# I looked at master on 2017-10-11,
137
- # commit 111ef79safe , after tag v2.15.0-rc1
137
+ # commit 111ef79afe , after tag v2.15.0-rc1
138
138
# from repo https://github.com/git/git.git
139
139
if line .startswith ("# pack-refs with:" ) and "peeled" not in line :
140
140
raise TypeError ("PackingType of packed-Refs not understood: %r" % line )
@@ -226,7 +226,7 @@ def _get_ref_info_helper(
226
226
:return:
227
227
*(str(sha), str(target_ref_path))*, where:
228
228
229
- * *sha* is of the file at real_path points to if available, or ``None``.
229
+ * *sha* is of the file at relative_fpath points to if available, or ``None``.
230
230
* *target_ref_path* is the reference we point to, or ``None``.
231
231
"""
232
232
if ref_path :
@@ -272,7 +272,7 @@ def _get_ref_info(cls, repo: "Repo", ref_path: Union[PathLike, None]) -> Union[T
272
272
:return:
273
273
*(str(sha), str(target_ref_path))*, where:
274
274
275
- * *sha* is of the file at real_path points to if available, or ``None``.
275
+ * *sha* is of the file at relative_fpath points to if available, or ``None``.
276
276
* *target_ref_path* is the reference we point to, or ``None``.
277
277
"""
278
278
return cls ._get_ref_info_helper (repo , ref_path )
@@ -813,7 +813,7 @@ def _iter_items(
813
813
) -> Iterator [T_References ]:
814
814
if common_path is None :
815
815
common_path = cls ._common_path_default
816
- real_paths = set ()
816
+ relative_fpaths = set ()
817
817
818
818
# Walk loose refs.
819
819
# Currently we do not follow links.
@@ -828,19 +828,19 @@ def _iter_items(
828
828
if f == "packed-refs" :
829
829
continue
830
830
abs_path = to_native_path_linux (join_path (root , f ))
831
- real_paths .add (abs_path .replace (to_native_path_linux (repo .common_dir ) + "/" , "" ))
831
+ relative_fpaths .add (abs_path .replace (to_native_path_linux (repo .common_dir ) + "/" , "" ))
832
832
# END for each file in root directory
833
833
# END for each directory to walk
834
834
835
835
# Read packed refs.
836
- for _sha , real_path in cls ._iter_packed_refs (repo ):
837
- if real_path .startswith (str (common_path )):
838
- real_paths .add (real_path )
836
+ for _sha , relative_fpath in cls ._iter_packed_refs (repo ):
837
+ if relative_fpath .startswith (str (common_path )):
838
+ relative_fpaths .add (relative_fpath )
839
839
# END relative path matches common path
840
840
# END packed refs reading
841
841
842
842
# Yield paths in sorted order.
843
- for path in sorted (real_paths ):
843
+ for path in sorted (relative_fpaths ):
844
844
try :
845
845
yield cls .from_path (repo , path )
846
846
except ValueError :
0 commit comments