From: "M Hickford via GitGitGadget" <gitgitgadget@gmail.com>
To: git@vger.kernel.org
Cc: Jeff King <peff@peff.net>, M Hickford <mirth.hickford@gmail.com>,
M Hickford <mirth.hickford@gmail.com>
Subject: [PATCH] Documentation: increase example cache timeout to 1 hour
Date: Wed, 09 Nov 2022 10:19:41 +0000 [thread overview]
Message-ID: <pull.1412.git.1667989181611.gitgitgadget@gmail.com> (raw)
From: M Hickford <mirth.hickford@gmail.com>
Previously, the example *decreased* the cache timeout compared to the
default, nudging users to make cache less usable.
Instead, nudge users to make cache more usable. Currently many users
choose store over cache for usability. See
https://lore.kernel.org/git/Y2p4rhiOphuOM0VQ@coredump.intra.peff.net/
The default timeout remains 15 minutes. A stronger nudge would
be to increase that.
Signed-off-by: M Hickford <mirth.hickford@gmail.com>
---
Documentation: Increase example cache timeout to 1 hour
Previously, the example decreased the cache timeout compared to the
default, nudging users to make cache less usable.
Instead, nudge users to make cache more usable. Currently many users
choose store over cache for usability. See
https://lore.kernel.org/git/Y2p4rhiOphuOM0VQ@coredump.intra.peff.net/
The default timeout remains 15 minutes. A stronger nudge would be to
increase that.
Signed-off-by: M Hickford mirth.hickford@gmail.com
Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-1412%2Fhickford%2Fnudge-cache-longer-v1
Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-1412/hickford/nudge-cache-longer-v1
Pull-Request: https://github.com/gitgitgadget/git/pull/1412
Documentation/git-credential-cache.txt | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Documentation/git-credential-cache.txt b/Documentation/git-credential-cache.txt
index 0216c18ef80..432e159d952 100644
--- a/Documentation/git-credential-cache.txt
+++ b/Documentation/git-credential-cache.txt
@@ -69,10 +69,10 @@ $ git push http://example.com/repo.git
------------------------------------
You can provide options via the credential.helper configuration
-variable (this example drops the cache time to 5 minutes):
+variable (this example increases the cache time to 1 hour):
-------------------------------------------------------
-$ git config credential.helper 'cache --timeout=300'
+$ git config credential.helper 'cache --timeout=3600'
-------------------------------------------------------
GIT
base-commit: 319605f8f00e402f3ea758a02c63534ff800a711
--
gitgitgadget
next reply other threads:[~2022-11-09 10:19 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-09 10:19 M Hickford via GitGitGadget [this message]
2022-11-09 13:18 ` [PATCH] Documentation: increase example cache timeout to 1 hour Jeff King
2022-11-09 16:09 ` M Hickford
2022-11-10 2:29 ` Taylor Blau
2022-11-09 16:11 ` [PATCH v2] " M Hickford via GitGitGadget
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=pull.1412.git.1667989181611.gitgitgadget@gmail.com \
--to=gitgitgadget@gmail.com \
--cc=git@vger.kernel.org \
--cc=mirth.hickford@gmail.com \
--cc=peff@peff.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).