{"thread":{"id":"35631","subject":"[PATCH 0/6] Make 'git help everyday' work","startedAt":"2014-01-09T23:13:06Z","lastAt":"2014-01-22T08:08:23Z","messageCount":21,"participants":["Philip Oakley","Junio C Hamano","Stefan Näwe","Jonathan Nieder"],"isPatch":true,"patchVersion":1,"patchTotal":6},"messages":[{"id":"232980","messageId":"1389309192-5748-1-git-send-email-philipoakley@iee.org","threadId":"35631","inReplyTo":null,"subject":"[PATCH 0/6] Make 'git help everyday' work","fromName":"Philip Oakley","fromEmail":"philipoakley@iee.org","sentAt":"2014-01-09T23:13:06Z","receivedAt":"2014-01-09T23:13:06Z","isPatch":true,"sender":{"key":"philipoakley@iee.email","avatar":"https://avatars.githubusercontent.com/u/914343?v=4"},"body":"The \"Everyday GIT With 20 Commands Or So\" guide is not accessible via the git help system. Fix that.\n\nThe git everyday file does not use the appropriate filenaming convention for help files, and is not suitably formatted for display as a man page.\n\nFirst copy everyday.txt to giteveryday.txt\nSecond modify giteveryday to fit man page formatting. Include the standard Git footer.\nThird add giteveryday to the manpages make list.\nFourth add deprecation note to older everday.txt. Include link to new man page.\nFifth add 'everyday' to the help --guides list.\nFinally, update the git(1) link.\n\nThe series could be squashed together once any foible have been eliminated.\n\nPhilip Oakley (6):\n  copy everyday.txt to giteveryday.txt\n  Update giteveryday.txt to fit man page formatting\n  add giteveryday to the manpages make list\n  Add deprecation note to old everyday.txt\n  add 'everyday' to the help --guides list\n  Update git(1) link to giteveryday\n\n Documentation/Makefile        |   1 +\n Documentation/everyday.txt    |   4 +\n Documentation/git.txt         |   2 +-\n Documentation/giteveryday.txt | 428 ++++++++++++++++++++++++++++++++++++++++++\n builtin/help.c                |   1 +\n 5 files changed, 435 insertions(+), 1 deletion(-)\n create mode 100644 Documentation/giteveryday.txt\n\n-- \n1.8.3.msysgit.0\n"},{"id":"232984","messageId":"1389309192-5748-2-git-send-email-philipoakley@iee.org","threadId":"35631","inReplyTo":"1389309192-5748-1-git-send-email-philipoakley@iee.org","subject":"[PATCH 1/6] copy everyday.txt to giteveryday.txt","fromName":"Philip Oakley","fromEmail":"philipoakley@iee.org","sentAt":"2014-01-09T23:13:07Z","receivedAt":"2014-01-09T23:13:07Z","isPatch":true,"sender":{"key":"philipoakley@iee.email","avatar":"https://avatars.githubusercontent.com/u/914343?v=4"},"body":"Signed-off-by: Philip Oakley <philipoakley@iee.org>\n---\n Documentation/giteveryday.txt | 413 ++++++++++++++++++++++++++++++++++++++++++\n 1 file changed, 413 insertions(+)\n create mode 100644 Documentation/giteveryday.txt\n\ndiff --git a/Documentation/giteveryday.txt b/Documentation/giteveryday.txt\nnew file mode 100644\nindex 0000000..2a18c1f\n--- /dev/null\n+++ b/Documentation/giteveryday.txt\n@@ -0,0 +1,413 @@\n+Everyday Git With 20 Commands Or So\n+===================================\n+\n+<<Individual Developer (Standalone)>> commands are essential for\n+anybody who makes a commit, even for somebody who works alone.\n+\n+If you work with other people, you will need commands listed in\n+the <<Individual Developer (Participant)>> section as well.\n+\n+People who play the <<Integrator>> role need to learn some more\n+commands in addition to the above.\n+\n+<<Repository Administration>> commands are for system\n+administrators who are responsible for the care and feeding\n+of Git repositories.\n+\n+\n+Individual Developer (Standalone)[[Individual Developer (Standalone)]]\n+----------------------------------------------------------------------\n+\n+A standalone individual developer does not exchange patches with\n+other people, and works alone in a single repository, using the\n+following commands.\n+\n+  * linkgit:git-init[1] to create a new repository.\n+\n+  * linkgit:git-show-branch[1] to see where you are.\n+\n+  * linkgit:git-log[1] to see what happened.\n+\n+  * linkgit:git-checkout[1] and linkgit:git-branch[1] to switch\n+    branches.\n+\n+  * linkgit:git-add[1] to manage the index file.\n+\n+  * linkgit:git-diff[1] and linkgit:git-status[1] to see what\n+    you are in the middle of doing.\n+\n+  * linkgit:git-commit[1] to advance the current branch.\n+\n+  * linkgit:git-reset[1] and linkgit:git-checkout[1] (with\n+    pathname parameters) to undo changes.\n+\n+  * linkgit:git-merge[1] to merge between local branches.\n+\n+  * linkgit:git-rebase[1] to maintain topic branches.\n+\n+  * linkgit:git-tag[1] to mark known point.\n+\n+Examples\n+~~~~~~~~\n+\n+Use a tarball as a starting point for a new repository.::\n++\n+------------\n+$ tar zxf frotz.tar.gz\n+$ cd frotz\n+$ git init\n+$ git add . <1>\n+$ git commit -m \"import of frotz source tree.\"\n+$ git tag v2.43 <2>\n+------------\n++\n+<1> add everything under the current directory.\n+<2> make a lightweight, unannotated tag.\n+\n+Create a topic branch and develop.::\n++\n+------------\n+$ git checkout -b alsa-audio <1>\n+$ edit/compile/test\n+$ git checkout -- curses/ux_audio_oss.c <2>\n+$ git add curses/ux_audio_alsa.c <3>\n+$ edit/compile/test\n+$ git diff HEAD <4>\n+$ git commit -a -s <5>\n+$ edit/compile/test\n+$ git reset --soft HEAD^ <6>\n+$ edit/compile/test\n+$ git diff ORIG_HEAD <7>\n+$ git commit -a -c ORIG_HEAD <8>\n+$ git checkout master <9>\n+$ git merge alsa-audio <10>\n+$ git log --since='3 days ago' <11>\n+$ git log v2.43.. curses/ <12>\n+------------\n++\n+<1> create a new topic branch.\n+<2> revert your botched changes in `curses/ux_audio_oss.c`.\n+<3> you need to tell Git if you added a new file; removal and\n+modification will be caught if you do `git commit -a` later.\n+<4> to see what changes you are committing.\n+<5> commit everything as you have tested, with your sign-off.\n+<6> take the last commit back, keeping what is in the working tree.\n+<7> look at the changes since the premature commit we took back.\n+<8> redo the commit undone in the previous step, using the message\n+you originally wrote.\n+<9> switch to the master branch.\n+<10> merge a topic branch into your master branch.\n+<11> review commit logs; other forms to limit output can be\n+combined and include `--max-count=10` (show 10 commits),\n+`--until=2005-12-10`, etc.\n+<12> view only the changes that touch what's in `curses/`\n+directory, since `v2.43` tag.\n+\n+\n+Individual Developer (Participant)[[Individual Developer (Participant)]]\n+------------------------------------------------------------------------\n+\n+A developer working as a participant in a group project needs to\n+learn how to communicate with others, and uses these commands in\n+addition to the ones needed by a standalone developer.\n+\n+  * linkgit:git-clone[1] from the upstream to prime your local\n+    repository.\n+\n+  * linkgit:git-pull[1] and linkgit:git-fetch[1] from \"origin\"\n+    to keep up-to-date with the upstream.\n+\n+  * linkgit:git-push[1] to shared repository, if you adopt CVS\n+    style shared repository workflow.\n+\n+  * linkgit:git-format-patch[1] to prepare e-mail submission, if\n+    you adopt Linux kernel-style public forum workflow.\n+\n+Examples\n+~~~~~~~~\n+\n+Clone the upstream and work on it.  Feed changes to upstream.::\n++\n+------------\n+$ git clone git://git.kernel.org/pub/scm/.../torvalds/linux-2.6 my2.6\n+$ cd my2.6\n+$ edit/compile/test; git commit -a -s <1>\n+$ git format-patch origin <2>\n+$ git pull <3>\n+$ git log -p ORIG_HEAD.. arch/i386 include/asm-i386 <4>\n+$ git pull git://git.kernel.org/pub/.../jgarzik/libata-dev.git ALL <5>\n+$ git reset --hard ORIG_HEAD <6>\n+$ git gc <7>\n+$ git fetch --tags <8>\n+------------\n++\n+<1> repeat as needed.\n+<2> extract patches from your branch for e-mail submission.\n+<3> `git pull` fetches from `origin` by default and merges into the\n+current branch.\n+<4> immediately after pulling, look at the changes done upstream\n+since last time we checked, only in the\n+area we are interested in.\n+<5> fetch from a specific branch from a specific repository and merge.\n+<6> revert the pull.\n+<7> garbage collect leftover objects from reverted pull.\n+<8> from time to time, obtain official tags from the `origin`\n+and store them under `.git/refs/tags/`.\n+\n+\n+Push into another repository.::\n++\n+------------\n+satellite$ git clone mothership:frotz frotz <1>\n+satellite$ cd frotz\n+satellite$ git config --get-regexp '^(remote|branch)\\.' <2>\n+remote.origin.url mothership:frotz\n+remote.origin.fetch refs/heads/*:refs/remotes/origin/*\n+branch.master.remote origin\n+branch.master.merge refs/heads/master\n+satellite$ git config remote.origin.push \\\n+           master:refs/remotes/satellite/master <3>\n+satellite$ edit/compile/test/commit\n+satellite$ git push origin <4>\n+\n+mothership$ cd frotz\n+mothership$ git checkout master\n+mothership$ git merge satellite/master <5>\n+------------\n++\n+<1> mothership machine has a frotz repository under your home\n+directory; clone from it to start a repository on the satellite\n+machine.\n+<2> clone sets these configuration variables by default.\n+It arranges `git pull` to fetch and store the branches of mothership\n+machine to local `remotes/origin/*` remote-tracking branches.\n+<3> arrange `git push` to push local `master` branch to\n+`remotes/satellite/master` branch of the mothership machine.\n+<4> push will stash our work away on `remotes/satellite/master`\n+remote-tracking branch on the mothership machine.  You could use this\n+as a back-up method.\n+<5> on mothership machine, merge the work done on the satellite\n+machine into the master branch.\n+\n+Branch off of a specific tag.::\n++\n+------------\n+$ git checkout -b private2.6.14 v2.6.14 <1>\n+$ edit/compile/test; git commit -a\n+$ git checkout master\n+$ git format-patch -k -m --stdout v2.6.14..private2.6.14 |\n+  git am -3 -k <2>\n+------------\n++\n+<1> create a private branch based on a well known (but somewhat behind)\n+tag.\n+<2> forward port all changes in `private2.6.14` branch to `master` branch\n+without a formal \"merging\".\n+\n+\n+Integrator[[Integrator]]\n+------------------------\n+\n+A fairly central person acting as the integrator in a group\n+project receives changes made by others, reviews and integrates\n+them and publishes the result for others to use, using these\n+commands in addition to the ones needed by participants.\n+\n+  * linkgit:git-am[1] to apply patches e-mailed in from your\n+    contributors.\n+\n+  * linkgit:git-pull[1] to merge from your trusted lieutenants.\n+\n+  * linkgit:git-format-patch[1] to prepare and send suggested\n+    alternative to contributors.\n+\n+  * linkgit:git-revert[1] to undo botched commits.\n+\n+  * linkgit:git-push[1] to publish the bleeding edge.\n+\n+\n+Examples\n+~~~~~~~~\n+\n+My typical Git day.::\n++\n+------------\n+$ git status <1>\n+$ git show-branch <2>\n+$ mailx <3>\n+& s 2 3 4 5 ./+to-apply\n+& s 7 8 ./+hold-linus\n+& q\n+$ git checkout -b topic/one master\n+$ git am -3 -i -s -u ./+to-apply <4>\n+$ compile/test\n+$ git checkout -b hold/linus && git am -3 -i -s -u ./+hold-linus <5>\n+$ git checkout topic/one && git rebase master <6>\n+$ git checkout pu && git reset --hard next <7>\n+$ git merge topic/one topic/two && git merge hold/linus <8>\n+$ git checkout maint\n+$ git cherry-pick master~4 <9>\n+$ compile/test\n+$ git tag -s -m \"GIT 0.99.9x\" v0.99.9x <10>\n+$ git fetch ko && git show-branch master maint 'tags/ko-*' <11>\n+$ git push ko <12>\n+$ git push ko v0.99.9x <13>\n+------------\n++\n+<1> see what I was in the middle of doing, if any.\n+<2> see what topic branches I have and think about how ready\n+they are.\n+<3> read mails, save ones that are applicable, and save others\n+that are not quite ready.\n+<4> apply them, interactively, with my sign-offs.\n+<5> create topic branch as needed and apply, again with my\n+sign-offs.\n+<6> rebase internal topic branch that has not been merged to the\n+master, nor exposed as a part of a stable branch.\n+<7> restart `pu` every time from the next.\n+<8> and bundle topic branches still cooking.\n+<9> backport a critical fix.\n+<10> create a signed tag.\n+<11> make sure I did not accidentally rewind master beyond what I\n+already pushed out.  `ko` shorthand points at the repository I have\n+at kernel.org, and looks like this:\n++\n+------------\n+$ cat .git/remotes/ko\n+URL: kernel.org:/pub/scm/git/git.git\n+Pull: master:refs/tags/ko-master\n+Pull: next:refs/tags/ko-next\n+Pull: maint:refs/tags/ko-maint\n+Push: master\n+Push: next\n+Push: +pu\n+Push: maint\n+------------\n++\n+In the output from `git show-branch`, `master` should have\n+everything `ko-master` has, and `next` should have\n+everything `ko-next` has.\n+\n+<12> push out the bleeding edge.\n+<13> push the tag out, too.\n+\n+\n+Repository Administration[[Repository Administration]]\n+------------------------------------------------------\n+\n+A repository administrator uses the following tools to set up\n+and maintain access to the repository by developers.\n+\n+  * linkgit:git-daemon[1] to allow anonymous download from\n+    repository.\n+\n+  * linkgit:git-shell[1] can be used as a 'restricted login shell'\n+    for shared central repository users.\n+\n+link:howto/update-hook-example.html[update hook howto] has a good\n+example of managing a shared central repository.\n+\n+\n+Examples\n+~~~~~~~~\n+We assume the following in /etc/services::\n++\n+------------\n+$ grep 9418 /etc/services\n+git\t\t9418/tcp\t\t# Git Version Control System\n+------------\n+\n+Run git-daemon to serve /pub/scm from inetd.::\n++\n+------------\n+$ grep git /etc/inetd.conf\n+git\tstream\ttcp\tnowait\tnobody \\\n+  /usr/bin/git-daemon git-daemon --inetd --export-all /pub/scm\n+------------\n++\n+The actual configuration line should be on one line.\n+\n+Run git-daemon to serve /pub/scm from xinetd.::\n++\n+------------\n+$ cat /etc/xinetd.d/git-daemon\n+# default: off\n+# description: The Git server offers access to Git repositories\n+service git\n+{\n+        disable = no\n+        type            = UNLISTED\n+        port            = 9418\n+        socket_type     = stream\n+        wait            = no\n+        user            = nobody\n+        server          = /usr/bin/git-daemon\n+        server_args     = --inetd --export-all --base-path=/pub/scm\n+        log_on_failure  += USERID\n+}\n+------------\n++\n+Check your xinetd(8) documentation and setup, this is from a Fedora system.\n+Others might be different.\n+\n+Give push/pull only access to developers.::\n++\n+------------\n+$ grep git /etc/passwd <1>\n+alice:x:1000:1000::/home/alice:/usr/bin/git-shell\n+bob:x:1001:1001::/home/bob:/usr/bin/git-shell\n+cindy:x:1002:1002::/home/cindy:/usr/bin/git-shell\n+david:x:1003:1003::/home/david:/usr/bin/git-shell\n+$ grep git /etc/shells <2>\n+/usr/bin/git-shell\n+------------\n++\n+<1> log-in shell is set to /usr/bin/git-shell, which does not\n+allow anything but `git push` and `git pull`.  The users should\n+get an ssh access to the machine.\n+<2> in many distributions /etc/shells needs to list what is used\n+as the login shell.\n+\n+CVS-style shared repository.::\n++\n+------------\n+$ grep git /etc/group <1>\n+git:x:9418:alice,bob,cindy,david\n+$ cd /home/devo.git\n+$ ls -l <2>\n+  lrwxrwxrwx   1 david git    17 Dec  4 22:40 HEAD -> refs/heads/master\n+  drwxrwsr-x   2 david git  4096 Dec  4 22:40 branches\n+  -rw-rw-r--   1 david git    84 Dec  4 22:40 config\n+  -rw-rw-r--   1 david git    58 Dec  4 22:40 description\n+  drwxrwsr-x   2 david git  4096 Dec  4 22:40 hooks\n+  -rw-rw-r--   1 david git 37504 Dec  4 22:40 index\n+  drwxrwsr-x   2 david git  4096 Dec  4 22:40 info\n+  drwxrwsr-x   4 david git  4096 Dec  4 22:40 objects\n+  drwxrwsr-x   4 david git  4096 Nov  7 14:58 refs\n+  drwxrwsr-x   2 david git  4096 Dec  4 22:40 remotes\n+$ ls -l hooks/update <3>\n+  -r-xr-xr-x   1 david git  3536 Dec  4 22:40 update\n+$ cat info/allowed-users <4>\n+refs/heads/master\talice\\|cindy\n+refs/heads/doc-update\tbob\n+refs/tags/v[0-9]*\tdavid\n+------------\n++\n+<1> place the developers into the same git group.\n+<2> and make the shared repository writable by the group.\n+<3> use update-hook example by Carl from Documentation/howto/\n+for branch policy control.\n+<4> alice and cindy can push into master, only bob can push into doc-update.\n+david is the release manager and is the only person who can\n+create and push version tags.\n+\n+HTTP server to support dumb protocol transfer.::\n++\n+------------\n+dev$ git update-server-info <1>\n+dev$ ftp user@isp.example.com <2>\n+ftp> cp -r .git /home/user/myproject.git\n+------------\n++\n+<1> make sure your info/refs and objects/info/packs are up-to-date\n+<2> upload to public HTTP server hosted by your ISP.\n-- \n1.8.3.msysgit.0\n"},{"id":"232983","messageId":"1389309192-5748-3-git-send-email-philipoakley@iee.org","threadId":"35631","inReplyTo":"1389309192-5748-1-git-send-email-philipoakley@iee.org","subject":"[PATCH 2/6] Update giteveryday.txt to fit man page formatting","fromName":"Philip Oakley","fromEmail":"philipoakley@iee.org","sentAt":"2014-01-09T23:13:08Z","receivedAt":"2014-01-09T23:13:08Z","isPatch":true,"sender":{"key":"philipoakley@iee.email","avatar":"https://avatars.githubusercontent.com/u/914343?v=4"},"body":"Add standard man page section titles.\nAlso adjust anchor text markup for man page format.\n\nSigned-off-by: Philip Oakley <philipoakley@iee.org>\n---\n Documentation/giteveryday.txt | 39 +++++++++++++++++++++++++++------------\n 1 file changed, 27 insertions(+), 12 deletions(-)\n\ndiff --git a/Documentation/giteveryday.txt b/Documentation/giteveryday.txt\nindex 2a18c1f..2939458 100644\n--- a/Documentation/giteveryday.txt\n+++ b/Documentation/giteveryday.txt\n@@ -1,22 +1,33 @@\n+giteveryday(7)\n+===============\n+\n+NAME\n+----\n+giteveryday - A useful minimum set of commands for Everyday Git \n+\n+SYNOPSIS\n+--------\n+\n Everyday Git With 20 Commands Or So\n-===================================\n \n-<<Individual Developer (Standalone)>> commands are essential for\n+DESCRIPTION\n+-----------\n+<<STANDALONE,Individual Developer (Standalone)>> commands are essential for\n anybody who makes a commit, even for somebody who works alone.\n \n If you work with other people, you will need commands listed in\n-the <<Individual Developer (Participant)>> section as well.\n+the <<PARTICIPANT,Individual Developer (Participant)>> section as well.\n \n-People who play the <<Integrator>> role need to learn some more\n+People who play the <<INTEGRATOR,Integrator>> role need to learn some more\n commands in addition to the above.\n \n-<<Repository Administration>> commands are for system\n+<<ADMINISTRATION,Repository Administration>> commands are for system\n administrators who are responsible for the care and feeding\n of Git repositories.\n \n \n-Individual Developer (Standalone)[[Individual Developer (Standalone)]]\n-----------------------------------------------------------------------\n+Individual Developer (Standalone)[[STANDALONE]]\n+-----------------------------------------------\n \n A standalone individual developer does not exchange patches with\n other people, and works alone in a single repository, using the\n@@ -104,8 +115,8 @@ combined and include `--max-count=10` (show 10 commits),\n directory, since `v2.43` tag.\n \n \n-Individual Developer (Participant)[[Individual Developer (Participant)]]\n-------------------------------------------------------------------------\n+Individual Developer (Participant)[[PARTICIPANT]]\n+-------------------------------------------------\n \n A developer working as a participant in a group project needs to\n learn how to communicate with others, and uses these commands in\n@@ -205,7 +216,7 @@ tag.\n without a formal \"merging\".\n \n \n-Integrator[[Integrator]]\n+Integrator[[INTEGRATOR]]\n ------------------------\n \n A fairly central person acting as the integrator in a group\n@@ -292,8 +303,8 @@ everything `ko-next` has.\n <13> push the tag out, too.\n \n \n-Repository Administration[[Repository Administration]]\n-------------------------------------------------------\n+Repository Administration[[ADMINISTRATION]]\n+-------------------------------------------\n \n A repository administrator uses the following tools to set up\n and maintain access to the repository by developers.\n@@ -411,3 +422,7 @@ ftp> cp -r .git /home/user/myproject.git\n +\n <1> make sure your info/refs and objects/info/packs are up-to-date\n <2> upload to public HTTP server hosted by your ISP.\n+\n+GIT\n+---\n+Part of the linkgit:git[1] suite\n\\ No newline at end of file\n-- \n1.8.3.msysgit.0\n"},{"id":"232985","messageId":"1389309192-5748-4-git-send-email-philipoakley@iee.org","threadId":"35631","inReplyTo":"1389309192-5748-1-git-send-email-philipoakley@iee.org","subject":"[PATCH 3/6] add giteveryday to the manpages make list","fromName":"Philip Oakley","fromEmail":"philipoakley@iee.org","sentAt":"2014-01-09T23:13:09Z","receivedAt":"2014-01-09T23:13:09Z","isPatch":true,"sender":{"key":"philipoakley@iee.email","avatar":"https://avatars.githubusercontent.com/u/914343?v=4"},"body":"Signed-off-by: Philip Oakley <philipoakley@iee.org>\n---\n Documentation/Makefile | 1 +\n 1 file changed, 1 insertion(+)\n\ndiff --git a/Documentation/Makefile b/Documentation/Makefile\nindex 91a12c7..7b745d0 100644\n--- a/Documentation/Makefile\n+++ b/Documentation/Makefile\n@@ -23,6 +23,7 @@ MAN7_TXT += gitcore-tutorial.txt\n MAN7_TXT += gitcredentials.txt\n MAN7_TXT += gitcvs-migration.txt\n MAN7_TXT += gitdiffcore.txt\n+MAN7_TXT += giteveryday.txt\n MAN7_TXT += gitglossary.txt\n MAN7_TXT += gitnamespaces.txt\n MAN7_TXT += gitrevisions.txt\n-- \n1.8.3.msysgit.0\n"},{"id":"232981","messageId":"1389309192-5748-5-git-send-email-philipoakley@iee.org","threadId":"35631","inReplyTo":"1389309192-5748-1-git-send-email-philipoakley@iee.org","subject":"[PATCH 4/6] Add deprecation note to old everyday.txt","fromName":"Philip Oakley","fromEmail":"philipoakley@iee.org","sentAt":"2014-01-09T23:13:10Z","receivedAt":"2014-01-09T23:13:10Z","isPatch":true,"sender":{"key":"philipoakley@iee.email","avatar":"https://avatars.githubusercontent.com/u/914343?v=4"},"body":"Also include link to new man page.\n\nSigned-off-by: Philip Oakley <philipoakley@iee.org>\n---\n Documentation/everyday.txt | 4 ++++\n 1 file changed, 4 insertions(+)\n\ndiff --git a/Documentation/everyday.txt b/Documentation/everyday.txt\nindex 2a18c1f..9de6347 100644\n--- a/Documentation/everyday.txt\n+++ b/Documentation/everyday.txt\n@@ -1,6 +1,10 @@\n Everyday Git With 20 Commands Or So\n ===================================\n \n+Note, the Everyday Git guidance is now available via `git help everyday`\n+linkgit:giteveryday[7].\n+This version is deprecated and may be removed in later releases.\n+\n <<Individual Developer (Standalone)>> commands are essential for\n anybody who makes a commit, even for somebody who works alone.\n \n-- \n1.8.3.msysgit.0\n"},{"id":"232986","messageId":"1389309192-5748-6-git-send-email-philipoakley@iee.org","threadId":"35631","inReplyTo":"1389309192-5748-1-git-send-email-philipoakley@iee.org","subject":"[PATCH 5/6] add 'everyday' to the help --guides list","fromName":"Philip Oakley","fromEmail":"philipoakley@iee.org","sentAt":"2014-01-09T23:13:11Z","receivedAt":"2014-01-09T23:13:11Z","isPatch":true,"sender":{"key":"philipoakley@iee.email","avatar":"https://avatars.githubusercontent.com/u/914343?v=4"},"body":"Signed-off-by: Philip Oakley <philipoakley@iee.org>\n---\n builtin/help.c | 1 +\n 1 file changed, 1 insertion(+)\n\ndiff --git a/builtin/help.c b/builtin/help.c\nindex cc17e67..45509ce 100644\n--- a/builtin/help.c\n+++ b/builtin/help.c\n@@ -418,6 +418,7 @@ static struct {\n \tconst char *help;\n } common_guides[] = {\n \t{ \"attributes\", N_(\"Defining attributes per path\") },\n+\t{ \"everyday\", N_(\"Everyday Git With 20 Commands Or So\") },\n \t{ \"glossary\", N_(\"A Git glossary\") },\n \t{ \"ignore\", N_(\"Specifies intentionally untracked files to ignore\") },\n \t{ \"modules\", N_(\"Defining submodule properties\") },\n-- \n1.8.3.msysgit.0\n"},{"id":"232982","messageId":"1389309192-5748-7-git-send-email-philipoakley@iee.org","threadId":"35631","inReplyTo":"1389309192-5748-1-git-send-email-philipoakley@iee.org","subject":"[PATCH 6/6] Update git(1) link to giteveryday","fromName":"Philip Oakley","fromEmail":"philipoakley@iee.org","sentAt":"2014-01-09T23:13:12Z","receivedAt":"2014-01-09T23:13:12Z","isPatch":true,"sender":{"key":"philipoakley@iee.email","avatar":"https://avatars.githubusercontent.com/u/914343?v=4"},"body":"Signed-off-by: Philip Oakley <philipoakley@iee.org>\n---\n Documentation/git.txt | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\ndiff --git a/Documentation/git.txt b/Documentation/git.txt\nindex aec3726..0e4875d 100644\n--- a/Documentation/git.txt\n+++ b/Documentation/git.txt\n@@ -22,7 +22,7 @@ unusually rich command set that provides both high-level operations\n and full access to internals.\n \n See linkgit:gittutorial[7] to get started, then see\n-link:everyday.html[Everyday Git] for a useful minimum set of\n+linkgit:giteveryday[7] for a useful minimum set of\n commands.  The link:user-manual.html[Git User's Manual] has a more\n in-depth introduction.\n \n-- \n1.8.3.msysgit.0\n"},{"id":"232987","messageId":"xmqqppo090m7.fsf@gitster.dls.corp.google.com","threadId":"35631","inReplyTo":"1389309192-5748-1-git-send-email-philipoakley@iee.org","subject":"Re: [PATCH 0/6] Make 'git help everyday' work","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2014-01-09T23:49:52Z","receivedAt":"2014-01-09T23:49:52Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"I think we already use a nicer way to set up a page alias to keep\nold links working than making a copy in Documentation/; please mimic\nthat if possible.\n\nIt may be overdue to refresh the suggested set of \"top 20\" commands,\nas things have vastly changed over the past 8 years.  Perhaps we\nshould do that after reorganizing with something like this series.\n"},{"id":"232989","messageId":"0AB7145111924BA986B1E172CD293B1D@PhilipOakley","threadId":"35631","inReplyTo":"xmqqppo090m7.fsf@gitster.dls.corp.google.com","subject":"Re: [PATCH 0/6] Make 'git help everyday' work","fromName":"Philip Oakley","fromEmail":"philipoakley@iee.org","sentAt":null,"receivedAt":"2014-01-10T03:03:54Z","isPatch":true,"sender":{"key":"philipoakley@iee.email","avatar":"https://avatars.githubusercontent.com/u/914343?v=4"},"body":"From: \"Junio C Hamano\" <gitster@pobox.com>\n>I think we already use a nicer way to set up a page alias to keep\n> old links working than making a copy in Documentation/; please mimic\n> that if possible.\n\nThis was mainly about ensuring that the 'git help' command could access \nthese extra extra guides that it currently misses. (Tt also misses the \n'user-manual', which isn't a man page, but could have a link page to \nguide the seeker of truth between 'git help' and the actual user-manual)\n\nThe only method I can see for that (via help.c) is to get the filename \nformat correct.  Where you thinking of something else?\n\n>\n> It may be overdue to refresh the suggested set of \"top 20\" commands,\n> as things have vastly changed over the past 8 years.  Perhaps we\n> should do that after reorganizing with something like this series.\n\nAgreed.\n\n> --\n"},{"id":"232990","messageId":"52CFACBB.7000805@atlas-elektronik.com","threadId":"35631","inReplyTo":"xmqqppo090m7.fsf@gitster.dls.corp.google.com","subject":"Re: [PATCH 0/6] Make 'git help everyday' work","fromName":"Stefan Näwe","fromEmail":"stefan.naewe@atlas-elektronik.com","sentAt":"2014-01-10T08:18:03Z","receivedAt":"2014-01-10T08:18:03Z","isPatch":true,"sender":{"key":"stefan.naewe@gmail.com","avatar":"https://avatars.githubusercontent.com/u/4468?v=4"},"body":"Am 10.01.2014 00:49, schrieb Junio C Hamano:\n> I think we already use a nicer way to set up a page alias to keep\n> old links working than making a copy in Documentation/; please mimic\n> that if possible.\n> \n> It may be overdue to refresh the suggested set of \"top 20\" commands,\n> as things have vastly changed over the past 8 years.  Perhaps we\n> should do that after reorganizing with something like this series.\n\nI'd really like to see 'git help relnotes' working as well...\n\nStefan\n-- \n----------------------------------------------------------------\n/dev/random says: Despite the high cost of living, it remains popular.\npython -c \"print '73746566616e2e6e616577654061746c61732d656c656b74726f6e696b2e636f6d'.decode('hex')\"\n"},{"id":"233000","messageId":"xmqqha9b909p.fsf@gitster.dls.corp.google.com","threadId":"35631","inReplyTo":"0AB7145111924BA986B1E172CD293B1D@PhilipOakley","subject":"Re: [PATCH 0/6] Make 'git help everyday' work","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2014-01-10T18:09:38Z","receivedAt":"2014-01-10T18:09:38Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"\"Philip Oakley\" <philipoakley@iee.org> writes:\n\n> From: \"Junio C Hamano\" <gitster@pobox.com>\n>>I think we already use a nicer way to set up a page alias to keep\n>> old links working than making a copy in Documentation/; please mimic\n>> that if possible.\n>\n> This was mainly about ensuring that the 'git help' command could\n> access these extra extra guides that it currently misses. (Tt also\n> misses the 'user-manual', which isn't a man page, but could have a\n> link page to guide the seeker of truth between 'git help' and the\n> actual user-manual)\n>\n> The only method I can see for that (via help.c) is to get the filename\n> format correct.  Where you thinking of something else?\n\nI do not have an objection against the creation of giteveryday.txt;\nI was questioning the way the original everyday.txt was left behind\nto bit-rot.  It is good to keep _something_ there, because there may\nbe old URLs floating around that point at Documentation/everyday.txt,\nbut the contents of that file does not have to be a stale copy.\n\nCf. bd4a3d61 (Rename {git- => git}remote-helpers.txt, 2013-01-31)\nfor how we renamed git-remote-helpers.txt to gitremote-helpers.txt\n"},{"id":"233010","messageId":"20140110201957.GJ4776@google.com","threadId":"35631","inReplyTo":"1389309192-5748-1-git-send-email-philipoakley@iee.org","subject":"Re: [PATCH 0/6] Make 'git help everyday' work","fromName":"Jonathan Nieder","fromEmail":"jrnieder@gmail.com","sentAt":"2014-01-10T20:19:57Z","receivedAt":"2014-01-10T20:19:57Z","isPatch":true,"sender":{"key":"jrnieder@gmail.com","avatar":"https://avatars.githubusercontent.com/u/281595?v=4"},"body":"Hi,\n\nPhilip Oakley wrote:\n\n> The \"Everyday GIT With 20 Commands Or So\" guide is not accessible\n> via the git help system. Fix that.\n\nNeat. :)\n\nJunio covered everything I'd want to say about patch 1/6.\n\nAfter fixing that, I'd suggest squashing all 6 patches into a single\npatch.  They all are part of accomplishing the same task, they are not\ntoo hard to read together, and the intermediate state after applying a\nfew but not the rest doesn't make much sense.  The details of patches\n2-6/6 look good to me.\n\nAlternatively, this could be two patches:\n\n 1 - modify everyday.txt in place to be a suitable manpage\n 2 - rename it, add a placeholder for the old name, and modify the\n     build rules to treat it as an actual manpage\n\nHope that helps,\nJonathan\n"},{"id":"233012","messageId":"4E804EE705484C3EB397AF6A6E5EB0B0@PhilipOakley","threadId":"35631","inReplyTo":"xmqqha9b909p.fsf@gitster.dls.corp.google.com","subject":"Re: [PATCH 0/6] Make 'git help everyday' work","fromName":"Philip Oakley","fromEmail":"philipoakley@iee.org","sentAt":null,"receivedAt":"2014-01-10T20:36:18Z","isPatch":true,"sender":{"key":"philipoakley@iee.email","avatar":"https://avatars.githubusercontent.com/u/914343?v=4"},"body":"From: \"Junio C Hamano\" <gitster@pobox.com>\n> \"Philip Oakley\" <philipoakley@iee.org> writes:\n>\n>> From: \"Junio C Hamano\" <gitster@pobox.com>\n>>>I think we already use a nicer way to set up a page alias to keep\n>>> old links working than making a copy in Documentation/; please mimic\n>>> that if possible.\n>>\n>> This was mainly about ensuring that the 'git help' command could\n>> access these extra extra guides that it currently misses. (Tt also\n>> misses the 'user-manual', which isn't a man page, but could have a\n>> link page to guide the seeker of truth between 'git help' and the\n>> actual user-manual)\n>>\n>> The only method I can see for that (via help.c) is to get the \n>> filename\n>> format correct.  Where you thinking of something else?\n>\n> I do not have an objection against the creation of giteveryday.txt;\n> I was questioning the way the original everyday.txt was left behind\n> to bit-rot.  It is good to keep _something_ there, because there may\n> be old URLs floating around that point at Documentation/everyday.txt,\n> but the contents of that file does not have to be a stale copy.\n\nAh, OK. I had indicated it would be deprecated, but had resisted stating \na date for deletion (e.g. git 2.0).\n\nI was thinking of a moderate two step deprecation period with the next \nstep being a severely cut down residual stub, before it's removal.\n\n>\n> Cf. bd4a3d61 (Rename {git- => git}remote-helpers.txt, 2013-01-31)\n> for how we renamed git-remote-helpers.txt to gitremote-helpers.txt\n\nI'll have a look at re-using that approach.\n\nAnything else needed before a re-roll?\n\nPhilip\n"},{"id":"233026","messageId":"18D97E9015B24D76845BFB980CB14CB8@PhilipOakley","threadId":"35631","inReplyTo":"xmqqha9b909p.fsf@gitster.dls.corp.google.com","subject":"Re: [PATCH 0/6] Make 'git help everyday' work","fromName":"Philip Oakley","fromEmail":"philipoakley@iee.org","sentAt":null,"receivedAt":"2014-01-11T17:34:21Z","isPatch":true,"sender":{"key":"philipoakley@iee.email","avatar":"https://avatars.githubusercontent.com/u/914343?v=4"},"body":"From: \"Junio C Hamano\" <gitster@pobox.com>\n> \"Philip Oakley\" <philipoakley@iee.org> writes:\n>\n>> From: \"Junio C Hamano\" <gitster@pobox.com>\n>>>I think we already use a nicer way to set up a page alias to keep\n>>> old links working than making a copy in Documentation/; please mimic\n>>> that if possible.\n>>\n>> This was mainly about ensuring that the 'git help' command could\n>> access these extra extra guides that it currently misses. (Tt also\n>> misses the 'user-manual', which isn't a man page, but could have a\n>> link page to guide the seeker of truth between 'git help' and the\n>> actual user-manual)\n>>\n>> The only method I can see for that (via help.c) is to get the \n>> filename\n>> format correct.  Where you thinking of something else?\n>\n> I do not have an objection against the creation of giteveryday.txt;\n> I was questioning the way the original everyday.txt was left behind\n> to bit-rot.  It is good to keep _something_ there, because there may\n> be old URLs floating around that point at Documentation/everyday.txt,\n> but the contents of that file does not have to be a stale copy.\n>\n> Cf. bd4a3d61 (Rename {git- => git}remote-helpers.txt, 2013-01-31)\n> for how we renamed git-remote-helpers.txt to gitremote-helpers.txt\n>\n\nThe commit also highlighted a couple of other places I needed to update\n\nWhat's the right set of options for format-patch to avoid the bulk \ndeletions and bulk insertions between the old an new versions? That \ncommit was amended in situ, so never had the three way \ndelete/move/create problem.\n\nWe have:\neveryday.txt (old) -> delete\neveryday.txt (new) ->create (<5% similarity)\neveryday.txt (old) -> giteveryday.txt (>95% similarity)\n\nIt just feels that 400+ lines of complete deletion doesn't need to be in \nthe summary patch. I have it in my mind that we always end up with the \ndeletions being listed.\n\nPhilip \n"},{"id":"233226","messageId":"F11CD558C63947F9B4AA75501D2F9F62@PhilipOakley","threadId":"35631","inReplyTo":"52CFACBB.7000805@atlas-elektronik.com","subject":"Re: [PATCH 0/6] Make 'git help everyday' work -> relnotes","fromName":"Philip Oakley","fromEmail":"philipoakley@iee.org","sentAt":null,"receivedAt":"2014-01-16T21:12:34Z","isPatch":true,"sender":{"key":"philipoakley@iee.email","avatar":"https://avatars.githubusercontent.com/u/914343?v=4"},"body":"From: \"Stefan Näwe\" <stefan.naewe@atlas-elektronik.com>\n[...]\n>\n> I'd really like to see 'git help relnotes' working as well...\n>\n> Stefan\n\nStefan,\n\nWere you thinking that all the release notes would be quoted verbatim in \nthe one long man page?\n\nOr that it would be a set of links to each of the individual text files \n(see the ifdef::stalenotes[] in git/Documentation/git.txt)?\n\nThe latter allows individual release notes to be checked, but still \nleaves folks with a difficult search problem if they want to find when \nsome command was 'tweaked'.\n\nObviously, any method would need to be easy to maintain. And the \nRelNotes symlink would need handling.\n\nPhilip\n\n--\n"},{"id":"233286","messageId":"52D91B0E.6080000@atlas-elektronik.com","threadId":"35631","inReplyTo":"F11CD558C63947F9B4AA75501D2F9F62@PhilipOakley","subject":"Re: [PATCH 0/6] Make 'git help everyday' work -> relnotes","fromName":"Stefan Näwe","fromEmail":"stefan.naewe@atlas-elektronik.com","sentAt":"2014-01-17T11:59:10Z","receivedAt":"2014-01-17T11:59:10Z","isPatch":true,"sender":{"key":"stefan.naewe@gmail.com","avatar":"https://avatars.githubusercontent.com/u/4468?v=4"},"body":"Am 16.01.2014 22:14, schrieb Philip Oakley:\n> From: \"Stefan Näwe\" <stefan.naewe@atlas-elektronik.com>\n> [...]\n>>\n>> I'd really like to see 'git help relnotes' working as well...\n>>\n>> Stefan\n> \n> Stefan,\n> \n> Were you thinking that all the release notes would be quoted verbatim in \n> the one long man page?\n> \n> Or that it would be a set of links to each of the individual text files \n> (see the ifdef::stalenotes[] in git/Documentation/git.txt)?\n> \n> The latter allows individual release notes to be checked, but still \n> leaves folks with a difficult search problem if they want to find when \n> some command was 'tweaked'.\n> \n> Obviously, any method would need to be easy to maintain. And the \n> RelNotes symlink would need handling.\n\n'git help relnotes' should show the current release note with\na link to the previous.\n\nAnd 'git help git' should link to the current release note.\n\n\nStefan\n-- \n----------------------------------------------------------------\n/dev/random says: We now return you to your regularly scheduled flame-throwing\npython -c \"print '73746566616e2e6e616577654061746c61732d656c656b74726f6e696b2e636f6d'.decode('hex')\"\n"},{"id":"233467","messageId":"BA4E87FA92ED4E8FB2C00F013BD7B3FF@PhilipOakley","threadId":"35631","inReplyTo":"52D91B0E.6080000@atlas-elektronik.com","subject":"Re: [PATCH 0/6] Make 'git help everyday' work -> relnotes","fromName":"Philip Oakley","fromEmail":"philipoakley@iee.org","sentAt":null,"receivedAt":"2014-01-21T22:14:22Z","isPatch":true,"sender":{"key":"philipoakley@iee.email","avatar":"https://avatars.githubusercontent.com/u/914343?v=4"},"body":"From: \"Stefan Näwe\" <stefan.naewe@atlas-elektronik.com>\n> Am 16.01.2014 22:14, schrieb Philip Oakley:\n>> From: \"Stefan Näwe\" <stefan.naewe@atlas-elektronik.com>\n>> [...]\n>>>\n>>> I'd really like to see 'git help relnotes' working as well...\n>>>\n>>> Stefan\n>>\n>> Stefan,\n>>\n>> Were you thinking that all the release notes would be quoted verbatim \n>> in\n>> the one long man page?\n>>\n>> Or that it would be a set of links to each of the individual text \n>> files\n>> (see the ifdef::stalenotes[] in git/Documentation/git.txt)?\n>>\n>> The latter allows individual release notes to be checked, but still\n>> leaves folks with a difficult search problem if they want to find \n>> when\n>> some command was 'tweaked'.\n>>\n>> Obviously, any method would need to be easy to maintain. And the\n>> RelNotes symlink would need handling.\n>\n> 'git help relnotes' should show the current release note with\n> a link to the previous.\n\nOK, that seems very sensible, as the concatenated release notes run to \n15k lines!\n\nDetermining which is the current release note is possibly more \nproblematic, which should be when making the documentation.\n\n>\n> And 'git help git' should link to the current release note.\n>\nIn some sense that 'current' should be the same as the 'git --version', \nbut through an assumption of a common distribution of git and the \ndocumentation, rather than any run time determination.\n\nAt the moment the Documenation/git.txt 'stalenotes' section could be \nseparated into its own file to act as the basis for the links, but as \nyet I don't have a good view as to how the current release notes (with / \nwithout maint notes?) would be embedded without a maintenance burden for \nJunio.\n\nPhilip \n"},{"id":"233489","messageId":"xmqqob34synq.fsf@gitster.dls.corp.google.com","threadId":"35631","inReplyTo":"BA4E87FA92ED4E8FB2C00F013BD7B3FF@PhilipOakley","subject":"Re: [PATCH 0/6] Make 'git help everyday' work -> relnotes","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2014-01-21T23:28:09Z","receivedAt":"2014-01-21T23:28:09Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"\"Philip Oakley\" <philipoakley@iee.org> writes:\n\n> Determining which is the current release note is possibly more \n> problematic, which should be when making the documentation.\n\nHmmm.... Why?\n\nYou are already aware of the stale-notes section, no?  Isn't the top\none the latest?\n"},{"id":"233495","messageId":"2D10AF8E0C024CC5A817528582FDE07D@PhilipOakley","threadId":"35631","inReplyTo":"xmqqob34synq.fsf@gitster.dls.corp.google.com","subject":"Re: [PATCH 0/6] Make 'git help everyday' work -> relnotes","fromName":"Philip Oakley","fromEmail":"philipoakley@iee.org","sentAt":null,"receivedAt":"2014-01-22T00:20:15Z","isPatch":true,"sender":{"key":"philipoakley@iee.email","avatar":"https://avatars.githubusercontent.com/u/914343?v=4"},"body":"From: \"Junio C Hamano\" <gitster@pobox.com>\n> \"Philip Oakley\" <philipoakley@iee.org> writes:\n>\n>> Determining which is the current release note is possibly more\n>> problematic, which should be when making the documentation.\n>\n> Hmmm.... Why?\n>\n> You are already aware of the stale-notes section, no?  Isn't the top\n> one the latest?\n\nIt's that the 'git help release-notes' would _include_ the latest \nrelease notes, not just link to them (which is what the stalenotes \ncurrently does). Or at least that was the idea.\n\nTrying to determine the latest version, and then include those release \nnotes, and the subsequent maint notes, into the putative \n\"release-notes(7)\" man page, without causing you any maintenance hassle, \nwas the conceptual problem.\n\nI already have a local patch that creates a stalenote.txt file, and \nincludes that in a \"release-notes(7)\" man page, but it still leaves the \nactual release notes in a separate plain text file, linked from the man \npage, rather than being right at hand, which is what I think readers \nwould expect.\n\n\nMy other question would be to ask how you normally manage the up-issue \nof the stalenotes, and when you would normally create that section in \ngit(1) as I didn't see any ifdef::stalenotes[] being defined anywhere \nelse.\n\nPhilip\n"},{"id":"233496","messageId":"xmqqbnz4svb7.fsf@gitster.dls.corp.google.com","threadId":"35631","inReplyTo":"2D10AF8E0C024CC5A817528582FDE07D@PhilipOakley","subject":"Re: [PATCH 0/6] Make 'git help everyday' work -> relnotes","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2014-01-22T00:40:28Z","receivedAt":"2014-01-22T00:40:28Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"\"Philip Oakley\" <philipoakley@iee.org> writes:\n\n> I already have a local patch that creates a stalenote.txt file, and\n> includes that in a \"release-notes(7)\" man page, but it still leaves\n> the actual release notes in a separate plain text file, linked from\n> the man page, rather than being right at hand, which is what I think\n> readers would expect.\n\nSorry, but I still do not get it.  If you have a script that reads\ngit.txt and extracts its stale-notes section to generate the source\nto be processed into release-notes(7), why can't that script also\ninclude the contents of the latest release notes inline into its\noutput?\n\nMy release notes are _not_ written to be compatible with/processable\nby AsciiDoc (they are meant to be mere plain text)---perhaps you are\nwondering if that would make it harder to maintain your script that\nproduces release-notes.txt?\n\nConfused...\n\n>\n> My other question would be to ask how you normally manage the up-issue\n> of the stalenotes, and when you would normally create that section in\n> git(1) as I didn't see any ifdef::stalenotes[] being defined anywhere\n> else.\n\nI'm not sure if I am understanding the question right (up-issue?),\nbut it used to be that the preformatted and web-reachable manual\npages at k.org were processed with stalenotes defined (which by the\nway was disabled with adaa3caf \"Meta/dodoc.sh: adjust to the new\nlayout, 2011-11-15\" on the todo branch), and 26cfcfbf \"Add release\nnotes to the distribution., 2007-02-13\" used that facility to\nprepare something like this:\n\n    docs/git.html\n        /git-cat-file.html\n        ...\n    docs/vX.Y.Z/git.html\n    docs/vX.Y.Z/git-cat-file.html\n                ...\n\nwhere the \"latest\" one lived immediately underneath docs/*, while\nolder ones were in versioned subdirectories.\n"},{"id":"233502","messageId":"D97049A7BB5848B6ABA211DB7D941196@PhilipOakley","threadId":"35631","inReplyTo":"xmqqbnz4svb7.fsf@gitster.dls.corp.google.com","subject":"Re: [PATCH 0/6] Make 'git help everyday' work -> relnotes","fromName":"Philip Oakley","fromEmail":"philipoakley@iee.org","sentAt":null,"receivedAt":"2014-01-22T08:08:23Z","isPatch":true,"sender":{"key":"philipoakley@iee.email","avatar":"https://avatars.githubusercontent.com/u/914343?v=4"},"body":"From: \"Junio C Hamano\" <gitster@pobox.com>\n> \"Philip Oakley\" <philipoakley@iee.org> writes:\n>\n>> I already have a local patch that creates a stalenote.txt file, and\n>> includes that in a \"release-notes(7)\" man page, but it still leaves\n>> the actual release notes in a separate plain text file, linked from\n>> the man page, rather than being right at hand, which is what I think\n>> readers would expect.\n>\n> Sorry, but I still do not get it.  If you have a script\n\nAh, no, it's not a script.\n\nI had simply moved the content of the stalenotes section into its own \nfile 'stalenotes.txt' which could then be included both within the \ngit(1) section it came from, and a new release-notes(7) man page.\n\nWith that set up the Documentation/Makefile would generate the man \npages, with their appropriate links, which can be accessed via the 'git \nhelp' command.\n\nThe big 'however' was that this would not actually include the latest \nrelease notes as literal text for immediate reading into the \nrelease-notes(7) man page, which would be my aim, and I think what \nStefan had suggested as a preferred style.\n\n>                      that reads\n> git.txt and extracts its stale-notes section to generate the source\n> to be processed into release-notes(7), why can't that script also\n> include the contents of the latest release notes inline into its\n> output?\n>\n> My release notes are _not_ written to be compatible with/processable\n> by AsciiDoc (they are meant to be mere plain text)---perhaps you are\n> wondering if that would make it harder to maintain your script that\n> produces release-notes.txt?\n>\n> Confused...\n\nMy thought was that the latest release note would be included as literal \ntext, as noted above.\nLike you say, it may need to be a script, but I was being cautious about \nwhat extra work that would entail for each release.\n\n>\n>>\n>> My other question would be to ask how you normally manage the \n>> up-issue\n>> of the stalenotes, and when you would normally create that section in\n>> git(1) as I didn't see any ifdef::stalenotes[] being defined anywhere\n>> else.\n>\n> I'm not sure if I am understanding the question right (up-issue?),\n> but it used to be that the preformatted and web-reachable manual\n> pages at k.org were processed with stalenotes defined (which by the\n> way was disabled with adaa3caf \"Meta/dodoc.sh: adjust to the new\n> layout, 2011-11-15\" on the todo branch), and 26cfcfbf \"Add release\n> notes to the distribution., 2007-02-13\" used that facility to\n> prepare something like this:\n>\n\nI hadn't looked back into that part of history. I was somehow expecting \nto see 'stalenotes' being defined somewhere in the current documenation \npreparation options, hence my question about when you would set \n'stalenotes'.\n\nI'll have a look back at that to see how it was used back then.\n\n>    docs/git.html\n>        /git-cat-file.html\n>        ...\n>    docs/vX.Y.Z/git.html\n>    docs/vX.Y.Z/git-cat-file.html\n>                ...\n>\n> where the \"latest\" one lived immediately underneath docs/*, while\n> older ones were in versioned subdirectories.\n> \n"}]}