[PATCH v3 0/9] [Resend][GSoC] Improvements to ref-filter
- From
- Hariom Verma via GitGitGadget <gitgitgadget@gmail.com>
- Date
- Aug 17, 2020, 18:10 UTC
- Message-ID
- <pull.684.v3.git.1597687822.gitgitgadget@gmail.com>
- In-Reply-To
- <pull.684.v2.git.1596664305.gitgitgadget@gmail.com>
This is the first patch series that introduces some improvements and features to file ref-filter.{c,h}. These changes are useful to ref-filter, but in near future also will allow us to use ref-filter's logic in pretty.c
I plan to add more to format-support.{c,h} in the upcoming patch series. That will lead to more improved and feature-rich ref-filter.c
----------------------------------------------------------------------------
I just rebased the branch with master and fixed some merge conflicts. Only the version number has been incremented, there are no changes in the patches. Original patch series: https://public-inbox.org/git/pull.684.v2.git.1596664305.gitgitgadget@gmail.com/#t
Hariom Verma (9): ref-filter: support different email formats ref-filter: refactor `grab_objectname()` ref-filter: modify error messages in `grab_objectname()` ref-filter: rename `objectname` related functions and fields ref-filter: add `short` modifier to 'tree' atom ref-filter: add `short` modifier to 'parent' atom pretty: refactor `format_sanitized_subject()` format-support: move `format_sanitized_subject()` from pretty ref-filter: add `sanitize` option for 'subject' atom
Documentation/git-for-each-ref.txt | 10 +- Makefile | 1 + format-support.c | 43 ++++++++ format-support.h | 6 ++ pretty.c | 40 +------- ref-filter.c | 159 +++++++++++++++++++---------- t/t6300-for-each-ref.sh | 35 +++++++ 7 files changed, 202 insertions(+), 92 deletions(-) create mode 100644 format-support.c create mode 100644 format-support.h
base-commit: 878e727637ec5815ccb3301eb994a54df95b21b8 Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-684%2Fharry-hov%2Fonly-rf6-v3 Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-684/harry-hov/only-rf6-v3 Pull-Request: https://github.com/gitgitgadget/git/pull/684
Range-diff vs v2:
1: 78e69032df = 1: 3e6fc66a46 ref-filter: support different email formats
2: b6b6acab9a = 2: 5268b973da ref-filter: refactor `grab_objectname()`
3: 65fee332a3 = 3: 4a12ff8210 ref-filter: modify error messages in `grab_objectname()`
4: 976f2041a4 = 4: d53ca56778 ref-filter: rename `objectname` related functions and fields
5: dda7400b14 = 5: fd4ed82e80 ref-filter: add `short` modifier to 'tree' atom
6: 764bb23b59 = 6: 7a039823de ref-filter: add `short` modifier to 'parent' atom
7: 95035765a0 = 7: 0ad22c7cdd pretty: refactor `format_sanitized_subject()`
8: 1c43f55d7c = 8: 7a64495f99 format-support: move `format_sanitized_subject()` from pretty
9: feace82752 ! 9: 1ab35e9251 ref-filter: add `sanitize` option for 'subject' atom
@@ ref-filter.c
@@
#include "worktree.h"
#include "hashmap.h"
- #include "argv-array.h"
+ #include "strvec.h"
+#include "format-support.h"
static struct ref_msg {-- gitgitgadget