Message ID | pull.1447.v3.git.1674936815117.gitgitgadget@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 4f542975d1c0e78799359e1bd40e34972030a1cf |
Headers | show |
Series | [v3] Documentation: clarify that cache forgets credentials if the system restarts | expand |
On Sat, Jan 28, 2023 at 08:13:34PM +0000, M Hickford via GitGitGadget wrote: > diff --git a/Documentation/git-credential-cache.txt b/Documentation/git-credential-cache.txt > index 432e159d952..f473994a864 100644 > --- a/Documentation/git-credential-cache.txt > +++ b/Documentation/git-credential-cache.txt > @@ -14,10 +14,13 @@ git config credential.helper 'cache [<options>]' > DESCRIPTION > ----------- > > -This command caches credentials in memory for use by future Git > -programs. The stored credentials never touch the disk, and are forgotten > -after a configurable timeout. The cache is accessible over a Unix > -domain socket, restricted to the current user by filesystem permissions. > +This command caches credentials for use by future Git programs. > +The stored credentials are kept in memory of the cache-daemon > +process (instead of written to a file) and are forgotten after a > +configurable timeout. Credentials are forgotten sooner if the > +cache-daemon dies, for example if the system restarts. The cache > +is accessible over a Unix domain socket, restricted to the current > +user by filesystem permissions. This version looks good to me. -Peff
Jeff King <peff@peff.net> writes: > On Sat, Jan 28, 2023 at 08:13:34PM +0000, M Hickford via GitGitGadget wrote: > >> diff --git a/Documentation/git-credential-cache.txt b/Documentation/git-credential-cache.txt >> index 432e159d952..f473994a864 100644 >> --- a/Documentation/git-credential-cache.txt >> +++ b/Documentation/git-credential-cache.txt >> @@ -14,10 +14,13 @@ git config credential.helper 'cache [<options>]' >> DESCRIPTION >> ----------- >> >> -This command caches credentials in memory for use by future Git >> -programs. The stored credentials never touch the disk, and are forgotten >> -after a configurable timeout. The cache is accessible over a Unix >> -domain socket, restricted to the current user by filesystem permissions. >> +This command caches credentials for use by future Git programs. >> +The stored credentials are kept in memory of the cache-daemon >> +process (instead of written to a file) and are forgotten after a >> +configurable timeout. Credentials are forgotten sooner if the >> +cache-daemon dies, for example if the system restarts. The cache >> +is accessible over a Unix domain socket, restricted to the current >> +user by filesystem permissions. > > This version looks good to me. Yup, it looks good to me, too. Thanks, all.
diff --git a/Documentation/git-credential-cache.txt b/Documentation/git-credential-cache.txt index 432e159d952..f473994a864 100644 --- a/Documentation/git-credential-cache.txt +++ b/Documentation/git-credential-cache.txt @@ -14,10 +14,13 @@ git config credential.helper 'cache [<options>]' DESCRIPTION ----------- -This command caches credentials in memory for use by future Git -programs. The stored credentials never touch the disk, and are forgotten -after a configurable timeout. The cache is accessible over a Unix -domain socket, restricted to the current user by filesystem permissions. +This command caches credentials for use by future Git programs. +The stored credentials are kept in memory of the cache-daemon +process (instead of written to a file) and are forgotten after a +configurable timeout. Credentials are forgotten sooner if the +cache-daemon dies, for example if the system restarts. The cache +is accessible over a Unix domain socket, restricted to the current +user by filesystem permissions. You probably don't want to invoke this command directly; it is meant to be used as a credential helper by other parts of Git. See