Browse Source

Update NEWS

Jelmer Vernooij 1 year ago
parent
commit
a946ece316
2 changed files with 2 additions and 4 deletions
  1. 2 0
      NEWS
  2. 0 4
      dulwich/porcelain.py

+ 2 - 0
NEWS

@@ -11,6 +11,8 @@
 
  * Support credentials in proxy URL. (Jelmer Vernooij, #1227)
 
+ * Add ``dulwich.porcelain.for_each_ref``. (Daniele Trifirò)
+
 0.21.6	2023-09-02
 
  * index: Handle different stages of conflicted paths.

+ 0 - 4
dulwich/porcelain.py

@@ -1705,7 +1705,6 @@ def fetch(
 def for_each_ref(
     repo: Union[Repo, str] = ".",
     pattern: Optional[Union[str, bytes]] = None,
-    **kwargs,
 ) -> List[Tuple[bytes, bytes, bytes]]:
     """Iterate over all refs that match the (optional) pattern.
 
@@ -1715,9 +1714,6 @@ def for_each_ref(
     Returns:
       List of bytes tuples with: (sha, object_type, ref_name)
     """
-    if kwargs:
-        raise NotImplementedError(f"{''.join(kwargs.keys())}")
-
     if isinstance(pattern, str):
         pattern = os.fsencode(pattern)