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

Re: [PATCH 1/3] revision: clarify a 'return NULL' in get_reference()

From
Christian Couder <christian.couder@gmail.com>
Date
Feb 1, 2024, 16:49 UTC
Message-ID
<CAP8UFD3ka-HyUAdJ8RTfMt1HPmp5nQ3EKK2soE1Vjn+7C5OmMA@mail.gmail.com>
In-Reply-To
<CAPig+cSNM0VJZ5SpvazY5T6rFvXuoTdfgD5J5f36PW4iW7xLVA@mail.gmail.com>
On Thu, Feb 1, 2024 at 3:53 PM Eric Sunshine <sunshine@sunshineco.com> wrote:
Show 7 quoted lines
>
> On Thu, Feb 1, 2024 at 6:58 AM Christian Couder
> <christian.couder@gmail.com> wrote:
> > In general when we know a pointer variable is NULL, it's clearer to
> > explicitely return NULL than to return that variable.
>
> s/explicitely/explicitly/
[...]
> > Let's make the code clearer and more uniform by also explicitely
> > returning NULL when 'revs->ignore_missing' is true.
>
> s/explicitely/explicitly/

Thanks, it's fixed in my current version. Not sure I have to resend just to fix this though.

Previous: Eric SunshineNext: Christian Couder
Message 4 of 20 in “rev-list: allow missing tips with --missing”
  1. 0/3 rev-list: allow missing tips with --missingChristian Couder, Feb 1, 2024
  2. 1/3 revision: clarify a 'return NULL' in get_reference()Christian Couder, Feb 1, 2024
  3. Eric SunshineFeb 1, 2024
  4. Christian CouderFeb 1, 2024
  5. 2/3 t6022: fix 'even though' typo in commentChristian Couder, Feb 1, 2024
  6. 3/3 rev-list: add --allow-missing-tips to be used with --missing=...Christian Couder, Feb 1, 2024
  7. Junio C HamanoFeb 1, 2024
  8. Christian CouderFeb 2, 2024
  9. Junio C HamanoFeb 2, 2024
  10. Junio C HamanoFeb 1, 2024
  11. Christian CouderFeb 2, 2024
  12. Junio C HamanoFeb 2, 2024
  13. Linus ArverFeb 7, 2024
  14. Junio C HamanoFeb 7, 2024
  15. Christian CouderFeb 7, 2024
  16. Linus ArverFeb 7, 2024
  17. Christian CouderFeb 7, 2024
  18. Linus ArverFeb 7, 2024
  19. Christian CouderFeb 8, 2024
  20. Linus ArverFeb 8, 2024

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.