Commit Diff


commit - e1f37c3e0a98f3296aaa07176ded91a90b4069b4
commit + a946ece316c72e6d83a5b94809695d0f18eca237
blob - 400f1ab9f6bdcb9ed3cba930d244d232a4349bad
blob + 8e76a9d8f49126b0862fad22a544225b2db5ee5b
--- NEWS
+++ NEWS
@@ -10,6 +10,8 @@
    deltas. (Jelmer Vernooij, #1221)
 
  * Support credentials in proxy URL. (Jelmer Vernooij, #1227)
+
+ * Add ``dulwich.porcelain.for_each_ref``. (Daniele Trifirò)
 
 0.21.6	2023-09-02
 
blob - 9eba72d82d7836aa268c93330a4b460c0c16a4f6
blob + 05f78f117be6059c8d22a4fbe58c06f4ba1b60b5
--- dulwich/porcelain.py
+++ 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)