Re: [PATCH 03/10] ref-filter: add the metas namespace to ref-filter

From
Phillip Wood <hidden>
Date
2022-09-26 14:49:14
Reply to
Chris Poucet via GitGitGadget, 2022-09-23
Hi Chris

On 23/09/2022 19:55, Chris Poucet via GitGitGadget wrote:
From: Chris Poucet <redacted>

The metas namespace will contain refs for changes in progress. Add
support for searching this namespace.
I assume this is to save having to write "refs/metas/" when we want to search for meta commits?
quoted hunk ↗ jump to hunk
Signed-off-by: Chris Poucet <redacted>
--- > diff --git a/ref-filter.h b/ref-filter.h
index aa0eea4ecf5..064fbef8e50 100644
--- a/ref-filter.h
+++ b/ref-filter.h
@@ -17,8 +17,10 @@
  #define FILTER_REFS_BRANCHES       0x0004
  #define FILTER_REFS_REMOTES        0x0008
  #define FILTER_REFS_OTHERS         0x0010
+#define FILTER_REFS_CHANGES        0x0040
It would be nice to keep FILTER_REFS_OTHERS at the end I think (we don't need to worry about abi compatibility), also what happened to 0x0020?

Best Wishes

Phillip
quoted hunk ↗ jump to hunk
  #define FILTER_REFS_ALL            (FILTER_REFS_TAGS | FILTER_REFS_BRANCHES | \
-				    FILTER_REFS_REMOTES | FILTER_REFS_OTHERS)
+				    FILTER_REFS_REMOTES | FILTER_REFS_OTHERS | \
+				    FILTER_REFS_CHANGES)
  #define FILTER_REFS_DETACHED_HEAD  0x0020
  #define FILTER_REFS_KIND_MASK      (FILTER_REFS_ALL | FILTER_REFS_DETACHED_HEAD)
  
  
Thread (65 messages) 65 messages, 10 authors, last reply 2022-10-12
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help