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

[PATCH] push: Re-include "push.default=tracking" in the documentation

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
Oct 6, 2016, 08:49 UTC
Message-ID
<20161006084905.14944-1-avarab@gmail.com>

Change the documentation for push.tracking=* to re-include a mention of what "tracking" does.

The "tracking" option was renamed to "upstream" back in 53c4031 ("push.default: Rename 'tracking' to 'upstream'", 2011-02-16), this section was then subsequently rewritten in 87a70e4 ("config doc: rewrite push.default section", 2013-06-19) to remove any mention of "tracking".

Maybe we should just warn or die nowadays if this option is in the config, but I had some old config of mine use this option, I'd forgotten that it was a synonym, and nothing in git's documentation mentioned that.

That's bad, either we shouldn't support it at all, or we should document what it does. This patch does the latter.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
---
 Documentation/config.txt | 4 ++++
 1 file changed, 4 insertions(+)
diff --git a/Documentation/config.txt b/Documentation/config.txt
index 32f065c..f30d52a 100644
--- a/Documentation/config.txt
+++ b/Documentation/config.txt
@@ -2344,6 +2344,10 @@ push.default::
   pushing to the same repository you would normally pull from
   (i.e. central workflow).
 
+* `tracking` - Deprecated synonym for `upstream`, which we still
+  support for backwards compatibility with existing configuration
+  files.
+
 * `simple` - in centralized workflow, work like `upstream` with an
   added safety to refuse to push if the upstream branch's name is
   different from the local one.
-- 
2.9.3
Next: Johan Herland
Message 1 of 8 in “push: Re-include "push.default=tracking" in the documentation”
  1. push: Re-include "push.default=tracking" in the documentationÆvar Arnfjörð Bjarmason, Oct 6, 2016
  2. Johan HerlandOct 6, 2016
  3. Matthieu MoyOct 6, 2016
  4. Ævar Arnfjörð BjarmasonOct 6, 2016
  5. Matthieu MoyOct 6, 2016
  6. Junio C HamanoOct 6, 2016
  7. push: Re-include "push.default=tracking" in the documentationÆvar Arnfjörð Bjarmason, Mar 19, 2017
  8. Junio C HamanoMar 20, 2017

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.