git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH v4 04/10] ref-filter: support printing N lines from tag annotation

From
Eric Sunshine <sunshine@sunshineco.com>
Date
Jul 26, 2015, 04:46 UTC
Message-ID
<CAPig+cS92cJ=OmaG2_HWNXNq9-D5V4f032WqeU0SVh_XCtxpXA@mail.gmail.com>
In-Reply-To
<1437764685-8633-5-git-send-email-Karthik.188@gmail.com>
On Fri, Jul 24, 2015 at 3:04 PM, Karthik Nayak <karthik.188@gmail.com> wrote:
Show 18 quoted lines
> From: Karthik Nayak <karthik.188@gmail.com>
>
> In 'tag.c' we can print N lines from the annotation of the tag using
> the '-n<num>' option. Copy code from 'tag.c' to 'ref-filter' and
> modify 'ref-filter' to support printing of N lines from the annotation
> of tags.
>
> Mentored-by: Christian Couder <christian.couder@gmail.com>
> Mentored-by: Matthieu Moy <matthieu.moy@grenoble-inp.fr>
> Signed-off-by: Karthik Nayak <karthik.188@gmail.com>
> ---
>  builtin/for-each-ref.c                             |   2 +-
>  builtin/tag.c                                      |   4 +
>  ref-filter.c                                       |  51 ++++++++-
>  ref-filter.h                                       |   9 +-
>  ...ter-add-option-to-align-atoms-to-the-left.patch | 124 +++++++++++++++++++++
>  5 files changed, 186 insertions(+), 4 deletions(-)
>  create mode 100644 v3-0001-ref-filter-add-option-to-align-atoms-to-the-left.patch

Somehow you managed to "git add" and "git commit" your v3 patch 1 file inside this v4 patch 4/10.

Show 24 quoted lines
> diff --git a/v3-0001-ref-filter-add-option-to-align-atoms-to-the-left.patch b/v3-0001-ref-filter-add-option-to-align-atoms-to-the-left.patch
> new file mode 100644
> index 0000000..350acae
> --- /dev/null
> +++ b/v3-0001-ref-filter-add-option-to-align-atoms-to-the-left.patch
> @@ -0,0 +1,124 @@
> +From 3a07ca1f56f74ca54b7f3c30e3dfd9fe2fed1cc3 Mon Sep 17 00:00:00 2001
> +From: Karthik Nayak <karthik.188@gmail.com>
> +Date: Wed, 10 Jun 2015 17:19:55 +0530
> +Subject: [PATCH v3 1/9] ref-filter: add option to align atoms to the left
> +
> +Add a new atom "align" and support %(align:X) where X is a number.
> +This will align the preceeding atom value to the left followed by
> +spaces for a total length of X characters. If X is less than the item
> +size, the entire atom value is printed.
> +
> +Helped-by: Duy Nguyen <pclouds@gmail.com>
> +Mentored-by: Christian Couder <christian.couder@gmail.com>
> +Mentored-by: Matthieu Moy <matthieu.moy@grenoble-inp.fr>
> +Signed-off-by: Karthik Nayak <karthik.188@gmail.com>
> +---
> + ref-filter.c | 41 +++++++++++++++++++++++++++++++++++++++--
> + ref-filter.h |  1 +
> + 2 files changed, 40 insertions(+), 2 deletions(-)
Previous: Karthik NayakNext: Karthik Nayak
Message 23 of 36 in “port tag.c to use ref-filter APIs”
  1. 0/10 port tag.c to use ref-filter APIsKarthik Nayak, Jul 24, 2015
  2. 01/10 ref-filter: add option to align atoms to the leftKarthik Nayak, Jul 24, 2015
  3. Junio C HamanoJul 24, 2015
  4. Junio C HamanoJul 24, 2015
  5. Karthik NayakJul 25, 2015
  6. Eric SunshineJul 26, 2015
  7. Karthik NayakJul 26, 2015
  8. Eric SunshineJul 26, 2015
  9. Karthik NayakJul 26, 2015
  10. Matthieu MoyJul 27, 2015
  11. Duy NguyenJul 27, 2015
  12. Jacob KellerJul 27, 2015
  13. Duy NguyenJul 27, 2015
  14. Duy NguyenJul 28, 2015
  15. 02/10 ref-filter: make the 'color' use ref_formatting_stateKarthik Nayak, Jul 24, 2015
  16. Junio C HamanoJul 24, 2015
  17. Karthik NayakJul 25, 2015
  18. Eric SunshineJul 26, 2015
  19. Eric SunshineJul 26, 2015
  20. Karthik NayakJul 26, 2015
  21. 03/10 ref-filter: add option to filter only tagsKarthik Nayak, Jul 24, 2015
  22. 04/10 ref-filter: support printing N lines from tag annotationKarthik Nayak, Jul 24, 2015
  23. Eric SunshineJul 26, 2015
  24. Karthik NayakJul 26, 2015
  25. 05/10 ref-filter: add support to sort by versionKarthik Nayak, Jul 24, 2015
  26. Junio C HamanoJul 25, 2015
  27. Karthik NayakJul 26, 2015
  28. Junio C HamanoJul 27, 2015
  29. Karthik NayakJul 27, 2015
  30. 06/10 ref-filter: add option to match literal patternKarthik Nayak, Jul 24, 2015
  31. Eric SunshineJul 26, 2015
  32. Karthik NayakJul 26, 2015
  33. 07/10 tag.c: use 'ref-filter' data structuresKarthik Nayak, Jul 24, 2015
  34. 08/10 tag.c: use 'ref-filter' APIsKarthik Nayak, Jul 24, 2015
  35. 09/10 tag.c: implement '--format' optionKarthik Nayak, Jul 24, 2015
  36. 10/10 tag.c: implement '--merged' and '--no-merged' optionsKarthik Nayak, Jul 24, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.