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

Re: [PATCH v2] credential/wincred: store password_expiry_utc

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 30, 2023, 19:19 UTC
Message-ID
<xmqqo7oahws8.fsf@gitster.g>
In-Reply-To
<pull.1477.v2.git.git.1680200278780.gitgitgadget@gmail.com>
"M Hickford via GitGitGadget" <gitgitgadget@gmail.com> writes:
Show 5 quoted lines
> From: M Hickford <mirth.hickford@gmail.com>
>
> This attribute is important when storing OAuth credentials which may
> expire after as little as one hour. See
> https://github.com/git/git/commit/d208bfdfef97a1e8fb746763b5057e0ad91e283b

Readers do not have to visit GitHub at all, and proposed log message shouldn't force them to. Refer to an existing commit in this project like so instead:

    ... as one hour.  d208bfdf (credential: new attribute
    password_expiry_utc, 2023-02-18) added support for this
    attribute in general so that individual credential backend like
    wincred can use it.
>     Help wanted from a Windows user to test. I tried testing on Linux with
>     Wine after cross-compiling [1] but Wine has incomplete support for
>     wincred.h [2]. To test:
I cannot be one to help testing but ...
Show 6 quoted lines
> @@ -292,7 +313,7 @@ int main(int argc, char *argv[])
>  	    "usage: git credential-wincred <get|store|erase>\n";
>  
>  	if (!argv[1])
> -		die(usage);
> +		die("%s", usage);

... this is a nice one. Logically it may belong to a separate topic, but it is small and obvious enough that it is OK to do as a "while at it" clean-up.

Previous: M Hickford via GitGitGadgetNext: M Hickford
Message 9 of 11 in “credential/wincred: store password_expiry_utc”
  1. credential/wincred: store password_expiry_utcM Hickford via GitGitGadget, Mar 25, 2023
  2. Johannes SchindelinMar 28, 2023
  3. M HickfordMar 30, 2023
  4. Junio C HamanoMay 1, 2023
  5. M HickfordMay 2, 2023
  6. Johannes SixtMay 2, 2023
  7. Felipe ContrerasMay 2, 2023
  8. credential/wincred: store password_expiry_utcM Hickford via GitGitGadget, Mar 30, 2023
  9. Junio C HamanoMar 30, 2023
  10. M HickfordApr 3, 2023
  11. credential/wincred: store password_expiry_utcM Hickford via GitGitGadget, Apr 3, 2023

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.