修訂 | b787669a106a310a5b396d9344e165691ede1234 (tree) |
---|---|
時間 | 2020-10-25 20:20:29 |
作者 | matsuand <30614168+matsuand@user...> |
Commiter | matsuand |
コメントを含まない、コメントが完了していないなどの場合への対処。20201025結果修正。
@@ -1,5 +1,5 @@ | ||
1 | 1 | diff -au /tmp/A-git-in-other-environments.asc.tmp ../../git/progit2/progit2/A-git-in-other-environments.asc |
2 | ---- /tmp/A-git-in-other-environments.asc.tmp 2020-10-25 13:21:06.560922481 +0900 | |
2 | +--- /tmp/A-git-in-other-environments.asc.tmp 2020-10-25 20:17:51.668319820 +0900 | |
3 | 3 | +++ ../../git/progit2/progit2/A-git-in-other-environments.asc 2020-08-29 09:58:24.046195489 +0900 |
4 | 4 | @@ -1,4 +1,4 @@ |
5 | 5 | -[#A-git-in-other-environments] |
@@ -22,7 +22,7 @@ diff -au /tmp/A-git-in-other-environments.asc.tmp ../../git/progit2/progit2/A-gi | ||
22 | 22 | |
23 | 23 | Warning: file not found: ../../git/progit2/progit2-ja/B-embedding-git-in-your-applications.asc |
24 | 24 | diff -au /tmp/C-git-commands.asc.tmp ../../git/progit2/progit2/C-git-commands.asc |
25 | ---- /tmp/C-git-commands.asc.tmp 2020-10-25 13:21:06.574923226 +0900 | |
25 | +--- /tmp/C-git-commands.asc.tmp 2020-10-25 20:17:51.792321515 +0900 | |
26 | 26 | +++ ../../git/progit2/progit2/C-git-commands.asc 2020-08-17 16:38:51.074694961 +0900 |
27 | 27 | @@ -1,4 +1,4 @@ |
28 | 28 | -[#C-git-commands] |
@@ -684,13 +684,14 @@ diff -au /tmp/C-git-commands.asc.tmp ../../git/progit2/progit2/C-git-commands.as | ||
684 | 684 | However, most of the low level plumbing commands we cover are in <<ch10-git-internals#ch10-git-internals>>, which is more or less what the chapter is focused on. |
685 | 685 | We tried to avoid use of them throughout most of the rest of the book. |
686 | 686 | diff -au /tmp/LICENSE.asc.tmp ../../git/progit2/progit2/LICENSE.asc |
687 | ---- /tmp/LICENSE.asc.tmp 2020-10-25 13:21:06.580923545 +0900 | |
687 | +--- /tmp/LICENSE.asc.tmp 2020-10-25 20:17:51.840322171 +0900 | |
688 | 688 | +++ ../../git/progit2/progit2/LICENSE.asc 2020-06-28 16:44:50.900011670 +0900 |
689 | -@@ -0,0 +1,2 @@ | |
689 | +@@ -1 +1,2 @@ | |
690 | +-This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/3.0/ or send a letter to Creative Commons, PO Box 1866, Mountain View, CA 94042, USA. | |
690 | 691 | +This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. |
691 | 692 | +To view a copy of this license, visit https://creativecommons.org/licenses/by-nc-sa/3.0 or send a letter to Creative Commons, PO Box 1866, Mountain View, CA 94042, USA. |
692 | 693 | diff -au /tmp/README.asc.tmp ../../git/progit2/progit2/README.asc |
693 | ---- /tmp/README.asc.tmp 2020-10-25 13:21:06.590924077 +0900 | |
694 | +--- /tmp/README.asc.tmp 2020-10-25 20:17:51.895322923 +0900 | |
694 | 695 | +++ ../../git/progit2/progit2/README.asc 2020-09-07 09:33:11.246683703 +0900 |
695 | 696 | @@ -1,51 +1,22 @@ |
696 | 697 | -= Pro Git 第2版 日本語翻訳 |
@@ -776,22 +777,63 @@ diff -au /tmp/README.asc.tmp ../../git/progit2/progit2/README.asc | ||
776 | 777 | -If you'd like to help out by making a change or contributing a translation, take a look at the link:CONTRIBUTING.md[contributor's guide]. |
777 | 778 | +If you'd like to help out by making a change, take a look at the link:CONTRIBUTING.md[contributor's guide]. |
778 | 779 | diff -au /tmp/TRANSLATION_NOTES.asc.tmp ../../git/progit2/progit2/TRANSLATION_NOTES.asc |
779 | ---- /tmp/TRANSLATION_NOTES.asc.tmp 2020-10-25 13:21:06.598924502 +0900 | |
780 | +--- /tmp/TRANSLATION_NOTES.asc.tmp 2020-10-25 20:17:51.950323675 +0900 | |
780 | 781 | +++ ../../git/progit2/progit2/TRANSLATION_NOTES.asc 2020-06-28 16:44:50.919014468 +0900 |
781 | -@@ -0,0 +1,11 @@ | |
782 | +@@ -1,44 +1,11 @@ | |
783 | +-== 翻訳作業メモ | |
782 | 784 | +== Translation Notes |
783 | -+ | |
785 | + | |
786 | +-Pro Git第2版の翻訳作業はGitHubを使って管理していきます。2014/11時点の最優先事項は*「第2版で未訳出の章の翻訳」*です。手順と注意事項を順を追って説明します。 | |
784 | 787 | +After forking this repository to translate the work, this file is where the notes for coordinating the translation work would go. |
785 | 788 | +Things like standardizing on words and expressions so that the work is consistent or notes on how the contributing process is to be handled. |
786 | -+ | |
789 | + | |
790 | +-なお、Pro Git第2版は全文がAsciiDocという記法で書かれています。記法に馴染みのないかたは、以下のガイド等に目を通してみてください。 | |
787 | 791 | +As a translation maintainer, also feel free to modify or completely rewrite the README file to contain instructions specific to your translation. |
788 | -+ | |
792 | + | |
793 | +-1. http://reddog.s35.xrea.com/wiki/AsciiDoc%E3%81%AE%E6%9B%B8%E3%81%8D%E6%96%B9.html[AsciiDocの書き方 - mynote] | |
794 | +-1. http://asciidoctor.org/docs/asciidoc-writers-guide/[AsciiDoc Writer’s Guide] | |
795 | +-1. http://www.methods.co.nz/asciidoc/[AsciiDoc User Manual] | |
789 | 796 | +=== Translation Status |
790 | -+ | |
797 | + | |
798 | +-=== 作業の手順 | |
799 | +- | |
800 | +-1. 作業着手の意思表示をする | |
801 | +- - 「作業はじめます」というissueをたてる | |
802 | +- - Work In Progressのプルリクエストを送る | |
803 | +-1. 翻訳する | |
804 | +-1. 作業進捗ファイルを更新する | |
805 | +-1. 翻訳後の作業を行う | |
806 | +- | |
807 | +-各手順の詳細は以下の通りです。 | |
808 | +- | |
809 | +-==== 作業着手の意思表示をする | |
810 | +- | |
811 | +-貴重な翻訳リソースが重複作業で無駄になってしまうことは絶対に避けたいので、以下のいずれかの方法で*作業着手の意思表示*をしてください。 | |
812 | +- | |
813 | +- - 「第◯章の作業はじめます」というissueをたてる | |
814 | +- - Work In ProgressのPull Requestを送る | |
815 | +- | |
816 | +-https://github.com/progit/progit2-ja/releases[Releases] に掲載されているのは*翻訳済みの章*、 https://github.com/progit/progit2-ja/labels/wip[wipタグがついているissue] は*現在翻訳中の章*です。確認して、作業が重複することのないようにしてください。 | |
817 | +- | |
818 | +-==== 翻訳する | |
819 | +- | |
820 | +-最大のルールは*「既訳を尊重する」*ことです。第2版の多くは第1版から変更されていませんので、まずは「差分を確認しつつ、可能な限り既訳をコピペ」でお願いします。用語についても、既訳を再優先してください。 | |
821 | +- | |
822 | +-既訳は https://github.com/progit/progit/tree/master/ja[第1版のGitHubリポジトリ] で確認・入手できます。 | |
823 | +- | |
824 | +-もう1点お願いしたいのが、*「原文の訳文への埋め込み」*です。原文は今後も頻繁に更新されていきますので、埋め込まれた原文を進捗管理に使います。 https://github.com/progit/progit2-ja/tree/master/book/01-introduction[第1章の訳文] を参考に、翻訳に使用した原文を訳文にも埋め込んでください。 | |
825 | +- | |
826 | +-==== 翻訳後の作業 | |
827 | +- | |
828 | +-以下の作業を行ってください。 | |
829 | +- | |
830 | +-1. `status.json`の更新(コンテンツ自動生成時に使用されます) | |
831 | +-1. 作業完了の意思表示(該当のissueやPull Requestにコメントする) | |
832 | +\ ファイル末尾に改行がありません | |
791 | 833 | +As the work is translated, please update the `status.json` file to indicate the rough percentage complete each file is. |
792 | 834 | +This will be shown on various pages to let people know how much work is left to be done. |
793 | 835 | diff -au /tmp/book/01-introduction/sections/about-version-control.asc.tmp ../../git/progit2/progit2/book/01-introduction/sections/about-version-control.asc |
794 | ---- /tmp/book/01-introduction/sections/about-version-control.asc.tmp 2020-10-25 13:21:06.605924875 +0900 | |
836 | +--- /tmp/book/01-introduction/sections/about-version-control.asc.tmp 2020-10-25 20:17:52.065325257 +0900 | |
795 | 837 | +++ ../../git/progit2/progit2/book/01-introduction/sections/about-version-control.asc 2020-07-04 16:36:46.718685392 +0900 |
796 | 838 | @@ -1,57 +1,60 @@ |
797 | 839 | === About Version Control |
@@ -870,7 +912,7 @@ diff -au /tmp/book/01-introduction/sections/about-version-control.asc.tmp ../../ | ||
870 | 912 | |
871 | 913 | Furthermore, many of these systems deal pretty well with having several remote repositories they can work with, so you can collaborate with different groups of people in different ways simultaneously within the same project. |
872 | 914 | diff -au /tmp/book/01-introduction/sections/command-line.asc.tmp ../../git/progit2/progit2/book/01-introduction/sections/command-line.asc |
873 | ---- /tmp/book/01-introduction/sections/command-line.asc.tmp 2020-10-25 13:21:06.612925247 +0900 | |
915 | +--- /tmp/book/01-introduction/sections/command-line.asc.tmp 2020-10-25 20:17:52.117325976 +0900 | |
874 | 916 | +++ ../../git/progit2/progit2/book/01-introduction/sections/command-line.asc 2020-06-28 16:44:50.920014615 +0900 |
875 | 917 | @@ -1,11 +1,11 @@ |
876 | 918 | === The Command Line |
@@ -889,7 +931,7 @@ diff -au /tmp/book/01-introduction/sections/command-line.asc.tmp ../../git/progi | ||
889 | 931 | +So we will expect you to know how to open Terminal in macOS or Command Prompt or PowerShell in Windows. |
890 | 932 | If you don't know what we're talking about here, you may need to stop and research that quickly so that you can follow the rest of the examples and descriptions in this book. |
891 | 933 | diff -au /tmp/book/01-introduction/sections/first-time-setup.asc.tmp ../../git/progit2/progit2/book/01-introduction/sections/first-time-setup.asc |
892 | ---- /tmp/book/01-introduction/sections/first-time-setup.asc.tmp 2020-10-25 13:21:06.619925619 +0900 | |
934 | +--- /tmp/book/01-introduction/sections/first-time-setup.asc.tmp 2020-10-25 20:17:52.137326253 +0900 | |
893 | 935 | +++ ../../git/progit2/progit2/book/01-introduction/sections/first-time-setup.asc 2020-08-10 10:02:15.168231103 +0900 |
894 | 936 | @@ -1,4 +1,4 @@ |
895 | 937 | -[[r_first_time]] |
@@ -1048,7 +1090,7 @@ diff -au /tmp/book/01-introduction/sections/first-time-setup.asc.tmp ../../git/p | ||
1048 | 1090 | +---- |
1049 | 1091 | +==== |
1050 | 1092 | diff -au /tmp/book/01-introduction/sections/help.asc.tmp ../../git/progit2/progit2/book/01-introduction/sections/help.asc |
1051 | ---- /tmp/book/01-introduction/sections/help.asc.tmp 2020-10-25 13:21:06.625925939 +0900 | |
1093 | +--- /tmp/book/01-introduction/sections/help.asc.tmp 2020-10-25 20:17:52.180326847 +0900 | |
1052 | 1094 | +++ ../../git/progit2/progit2/book/01-introduction/sections/help.asc 2020-07-04 16:36:46.718685392 +0900 |
1053 | 1095 | @@ -1,10 +1,48 @@ |
1054 | 1096 | -[[r_git_help]] |
@@ -1104,7 +1146,7 @@ diff -au /tmp/book/01-introduction/sections/help.asc.tmp ../../git/progit2/progi | ||
1104 | 1146 | +---- |
1105 | 1147 | + |
1106 | 1148 | diff -au /tmp/book/01-introduction/sections/history.asc.tmp ../../git/progit2/progit2/book/01-introduction/sections/history.asc |
1107 | ---- /tmp/book/01-introduction/sections/history.asc.tmp 2020-10-25 13:21:06.632926311 +0900 | |
1149 | +--- /tmp/book/01-introduction/sections/history.asc.tmp 2020-10-25 20:17:52.341329074 +0900 | |
1108 | 1150 | +++ ../../git/progit2/progit2/book/01-introduction/sections/history.asc 2020-06-28 16:44:50.921014763 +0900 |
1109 | 1151 | @@ -17,4 +17,4 @@ |
1110 | 1152 | * Able to handle large projects like the Linux kernel efficiently (speed and data size) |
@@ -1113,7 +1155,7 @@ diff -au /tmp/book/01-introduction/sections/history.asc.tmp ../../git/progit2/pr | ||
1113 | 1155 | -It's incredibly fast, it's very efficient with large projects, and it has an incredible branching system for non-linear development (See <<ch03-git-branching#ch03-git-branching>>). |
1114 | 1156 | +It's amazingly fast, it's very efficient with large projects, and it has an incredible branching system for non-linear development (See <<ch03-git-branching#ch03-git-branching>>). |
1115 | 1157 | diff -au /tmp/book/01-introduction/sections/installing.asc.tmp ../../git/progit2/progit2/book/01-introduction/sections/installing.asc |
1116 | ---- /tmp/book/01-introduction/sections/installing.asc.tmp 2020-10-25 13:21:06.638926630 +0900 | |
1158 | +--- /tmp/book/01-introduction/sections/installing.asc.tmp 2020-10-25 20:17:52.437330401 +0900 | |
1117 | 1159 | +++ ../../git/progit2/progit2/book/01-introduction/sections/installing.asc 2020-07-04 16:36:46.718685392 +0900 |
1118 | 1160 | @@ -4,72 +4,144 @@ |
1119 | 1161 | Even if it's already installed, it's probably a good idea to update to the latest version. |
@@ -1288,7 +1330,7 @@ diff -au /tmp/book/01-introduction/sections/installing.asc.tmp ../../git/progit2 | ||
1288 | 1330 | +---- |
1289 | 1331 | Warning: file not found: ../../git/progit2/progit2-ja/book/01-introduction/sections/what-is-git.asc |
1290 | 1332 | diff -au /tmp/book/02-git-basics/sections/aliases.asc.tmp ../../git/progit2/progit2/book/02-git-basics/sections/aliases.asc |
1291 | ---- /tmp/book/02-git-basics/sections/aliases.asc.tmp 2020-10-25 13:21:06.645927003 +0900 | |
1333 | +--- /tmp/book/02-git-basics/sections/aliases.asc.tmp 2020-10-25 20:17:52.647333305 +0900 | |
1292 | 1334 | +++ ../../git/progit2/progit2/book/02-git-basics/sections/aliases.asc 2020-07-03 19:43:27.508489967 +0900 |
1293 | 1335 | @@ -1,28 +1,70 @@ |
1294 | 1336 | -[[r_git_aliases]] |
@@ -1365,7 +1407,7 @@ diff -au /tmp/book/02-git-basics/sections/aliases.asc.tmp ../../git/progit2/prog | ||
1365 | 1407 | +$ git config --global alias.visual '!gitk' |
1366 | 1408 | +---- |
1367 | 1409 | diff -au /tmp/book/02-git-basics/sections/getting-a-repository.asc.tmp ../../git/progit2/progit2/book/02-git-basics/sections/getting-a-repository.asc |
1368 | ---- /tmp/book/02-git-basics/sections/getting-a-repository.asc.tmp 2020-10-25 13:21:06.652927375 +0900 | |
1410 | +--- /tmp/book/02-git-basics/sections/getting-a-repository.asc.tmp 2020-10-25 20:17:52.682333789 +0900 | |
1369 | 1411 | +++ ../../git/progit2/progit2/book/02-git-basics/sections/getting-a-repository.asc 2020-07-01 10:48:37.610009640 +0900 |
1370 | 1412 | @@ -1,41 +1,87 @@ |
1371 | 1413 | -[[r_getting_a_repo]] |
@@ -1472,7 +1514,7 @@ diff -au /tmp/book/02-git-basics/sections/getting-a-repository.asc.tmp ../../git | ||
1472 | 1514 | -<<ch04-git-server#r_git_on_the_server>> will introduce all of the available options the server can set up to access your Git repository and the pros and cons of each. |
1473 | 1515 | +<<ch04-git-on-the-server#_getting_git_on_a_server>> will introduce all of the available options the server can set up to access your Git repository and the pros and cons of each. |
1474 | 1516 | diff -au /tmp/book/02-git-basics/sections/recording-changes.asc.tmp ../../git/progit2/progit2/book/02-git-basics/sections/recording-changes.asc |
1475 | ---- /tmp/book/02-git-basics/sections/recording-changes.asc.tmp 2020-10-25 13:21:06.661927854 +0900 | |
1517 | +--- /tmp/book/02-git-basics/sections/recording-changes.asc.tmp 2020-10-25 20:17:52.715334245 +0900 | |
1476 | 1518 | +++ ../../git/progit2/progit2/book/02-git-basics/sections/recording-changes.asc 2020-07-04 16:36:46.720685416 +0900 |
1477 | 1519 | @@ -1,48 +1,91 @@ |
1478 | 1520 | === Recording Changes to the Repository |
@@ -2137,7 +2179,7 @@ diff -au /tmp/book/02-git-basics/sections/recording-changes.asc.tmp ../../git/pr | ||
2137 | 2179 | +The only real difference is that `git mv` is one command instead of three -- it's a convenience function. |
2138 | 2180 | More importantly, you can use any tool you like to rename a file, and address the add/rm later, before you commit. |
2139 | 2181 | diff -au /tmp/book/02-git-basics/sections/remotes.asc.tmp ../../git/progit2/progit2/book/02-git-basics/sections/remotes.asc |
2140 | ---- /tmp/book/02-git-basics/sections/remotes.asc.tmp 2020-10-25 13:21:06.672928439 +0900 | |
2182 | +--- /tmp/book/02-git-basics/sections/remotes.asc.tmp 2020-10-25 20:17:52.757334826 +0900 | |
2141 | 2183 | +++ ../../git/progit2/progit2/book/02-git-basics/sections/remotes.asc 2020-07-17 09:06:42.261936072 +0900 |
2142 | 2184 | @@ -1,4 +1,4 @@ |
2143 | 2185 | -[[r_remote_repos]] |
@@ -2398,7 +2440,7 @@ diff -au /tmp/book/02-git-basics/sections/remotes.asc.tmp ../../git/progit2/prog | ||
2398 | 2440 | + |
2399 | 2441 | +Once you delete the reference to a remote this way, all remote-tracking branches and configuration settings associated with that remote are also deleted. |
2400 | 2442 | diff -au /tmp/book/02-git-basics/sections/tagging.asc.tmp ../../git/progit2/progit2/book/02-git-basics/sections/tagging.asc |
2401 | ---- /tmp/book/02-git-basics/sections/tagging.asc.tmp 2020-10-25 13:21:06.680928864 +0900 | |
2443 | +--- /tmp/book/02-git-basics/sections/tagging.asc.tmp 2020-10-25 20:17:52.820335697 +0900 | |
2402 | 2444 | +++ ../../git/progit2/progit2/book/02-git-basics/sections/tagging.asc 2020-08-29 09:58:24.048195629 +0900 |
2403 | 2445 | @@ -1,77 +1,299 @@ |
2404 | 2446 | -[[r_git_tagging]] |
@@ -2719,7 +2761,7 @@ diff -au /tmp/book/02-git-basics/sections/tagging.asc.tmp ../../git/progit2/prog | ||
2719 | 2761 | -Of course if you do this and do a commit, your `version2` branch will be slightly different than your `v2.0.0` tag since it will move forward with your new changes, so do be careful. |
2720 | 2762 | +If you do this and make a commit, your `version2` branch will be slightly different than your `v2.0.0` tag since it will move forward with your new changes, so do be careful. |
2721 | 2763 | diff -au /tmp/book/02-git-basics/sections/undoing.asc.tmp ../../git/progit2/progit2/book/02-git-basics/sections/undoing.asc |
2722 | ---- /tmp/book/02-git-basics/sections/undoing.asc.tmp 2020-10-25 13:21:06.690929396 +0900 | |
2764 | +--- /tmp/book/02-git-basics/sections/undoing.asc.tmp 2020-10-25 20:17:52.876336472 +0900 | |
2723 | 2765 | +++ ../../git/progit2/progit2/book/02-git-basics/sections/undoing.asc 2020-10-18 09:42:35.779991668 +0900 |
2724 | 2766 | @@ -1,4 +1,4 @@ |
2725 | 2767 | -[[r_undoing]] |
@@ -2972,7 +3014,7 @@ diff -au /tmp/book/02-git-basics/sections/undoing.asc.tmp ../../git/progit2/prog | ||
2972 | 3014 | +Don't ever use this command unless you absolutely know that you don't want those unsaved local changes. |
2973 | 3015 | +===== |
2974 | 3016 | diff -au /tmp/book/02-git-basics/sections/viewing-history.asc.tmp ../../git/progit2/progit2/book/02-git-basics/sections/viewing-history.asc |
2975 | ---- /tmp/book/02-git-basics/sections/viewing-history.asc.tmp 2020-10-25 13:21:06.699929875 +0900 | |
3017 | +--- /tmp/book/02-git-basics/sections/viewing-history.asc.tmp 2020-10-25 20:17:52.922337108 +0900 | |
2976 | 3018 | +++ ../../git/progit2/progit2/book/02-git-basics/sections/viewing-history.asc 2020-09-26 08:56:07.950296410 +0900 |
2977 | 3019 | @@ -1,76 +1,213 @@ |
2978 | 3020 | -[[r_viewing_history]] |
@@ -3322,7 +3364,7 @@ diff -au /tmp/book/02-git-basics/sections/viewing-history.asc.tmp ../../git/prog | ||
3322 | 3364 | +To prevent the display of merge commits cluttering up your log history, simply add the log option `--no-merges`. |
3323 | 3365 | +==== |
3324 | 3366 | diff -au /tmp/book/03-git-branching/sections/basic-branching-and-merging.asc.tmp ../../git/progit2/progit2/book/03-git-branching/sections/basic-branching-and-merging.asc |
3325 | ---- /tmp/book/03-git-branching/sections/basic-branching-and-merging.asc.tmp 2020-10-25 13:21:06.707930301 +0900 | |
3367 | +--- /tmp/book/03-git-branching/sections/basic-branching-and-merging.asc.tmp 2020-10-25 20:17:53.010338324 +0900 | |
3326 | 3368 | +++ ../../git/progit2/progit2/book/03-git-branching/sections/basic-branching-and-merging.asc 2020-07-04 16:36:46.720685416 +0900 |
3327 | 3369 | @@ -3,8 +3,8 @@ |
3328 | 3370 | Let's go through a simple example of branching and merging with a workflow that you might use in the real world. |
@@ -3675,7 +3717,7 @@ diff -au /tmp/book/03-git-branching/sections/basic-branching-and-merging.asc.tmp | ||
3675 | 3717 | + |
3676 | 3718 | +If you think it would be helpful to others looking at this merge in the future, you can modify this commit message with details about how you resolved the merge and explain why you did the changes you made if these are not obvious. |
3677 | 3719 | diff -au /tmp/book/03-git-branching/sections/branch-management.asc.tmp ../../git/progit2/progit2/book/03-git-branching/sections/branch-management.asc |
3678 | ---- /tmp/book/03-git-branching/sections/branch-management.asc.tmp 2020-10-25 13:21:06.716930779 +0900 | |
3720 | +--- /tmp/book/03-git-branching/sections/branch-management.asc.tmp 2020-10-25 20:17:53.065339085 +0900 | |
3679 | 3721 | +++ ../../git/progit2/progit2/book/03-git-branching/sections/branch-management.asc 2020-09-12 09:27:13.221663700 +0900 |
3680 | 3722 | @@ -1,4 +1,4 @@ |
3681 | 3723 | -[[r_branch_management]] |
@@ -3823,7 +3865,7 @@ diff -au /tmp/book/03-git-branching/sections/branch-management.asc.tmp ../../git | ||
3823 | 3865 | +$ git push origin --delete master |
3824 | 3866 | +---- |
3825 | 3867 | diff -au /tmp/book/03-git-branching/sections/nutshell.asc.tmp ../../git/progit2/progit2/book/03-git-branching/sections/nutshell.asc |
3826 | ---- /tmp/book/03-git-branching/sections/nutshell.asc.tmp 2020-10-25 13:21:06.725931258 +0900 | |
3868 | +--- /tmp/book/03-git-branching/sections/nutshell.asc.tmp 2020-10-25 20:17:53.114339763 +0900 | |
3827 | 3869 | +++ ../../git/progit2/progit2/book/03-git-branching/sections/nutshell.asc 2020-09-26 08:56:07.950296410 +0900 |
3828 | 3870 | @@ -1,100 +1,150 @@ |
3829 | 3871 | -[[r_git_branches_overview]] |
@@ -4063,7 +4105,7 @@ diff -au /tmp/book/03-git-branching/sections/nutshell.asc.tmp ../../git/progit2/ | ||
4063 | 4105 | +- Return to your previously checked out branch: `git switch -`. |
4064 | 4106 | +==== |
4065 | 4107 | diff -au /tmp/book/03-git-branching/sections/rebasing.asc.tmp ../../git/progit2/progit2/book/03-git-branching/sections/rebasing.asc |
4066 | ---- /tmp/book/03-git-branching/sections/rebasing.asc.tmp 2020-10-25 13:21:06.735931790 +0900 | |
4108 | +--- /tmp/book/03-git-branching/sections/rebasing.asc.tmp 2020-10-25 20:17:53.161340412 +0900 | |
4067 | 4109 | +++ ../../git/progit2/progit2/book/03-git-branching/sections/rebasing.asc 2020-08-17 16:38:51.075694960 +0900 |
4068 | 4110 | @@ -1,94 +1,144 @@ |
4069 | 4111 | -[[r_rebasing]] |
@@ -4325,7 +4367,7 @@ diff -au /tmp/book/03-git-branching/sections/rebasing.asc.tmp ../../git/progit2/ | ||
4325 | 4367 | -In general the way to get the best of both worlds is to rebase local changes you've made but haven't shared yet before you push them in order to clean up your story, but never rebase anything you've pushed somewhere. |
4326 | 4368 | +You can get the best of both worlds: rebase local changes before pushing to clean up your work, but never rebase anything that you've pushed somewhere. |
4327 | 4369 | diff -au /tmp/book/03-git-branching/sections/remote-branches.asc.tmp ../../git/progit2/progit2/book/03-git-branching/sections/remote-branches.asc |
4328 | ---- /tmp/book/03-git-branching/sections/remote-branches.asc.tmp 2020-10-25 13:21:06.744932269 +0900 | |
4370 | +--- /tmp/book/03-git-branching/sections/remote-branches.asc.tmp 2020-10-25 20:17:53.227341325 +0900 | |
4329 | 4371 | +++ ../../git/progit2/progit2/book/03-git-branching/sections/remote-branches.asc 2020-07-04 16:36:46.723685453 +0900 |
4330 | 4372 | @@ -1,23 +1,25 @@ |
4331 | 4373 | -[[r_remote_branches]] |
@@ -4604,7 +4646,7 @@ diff -au /tmp/book/03-git-branching/sections/remote-branches.asc.tmp ../../git/p | ||
4604 | 4646 | Basically all this does is remove the pointer from the server. |
4605 | 4647 | The Git server will generally keep the data there for a while until a garbage collection runs, so if it was accidentally deleted, it's often easy to recover. |
4606 | 4648 | diff -au /tmp/book/03-git-branching/sections/workflows.asc.tmp ../../git/progit2/progit2/book/03-git-branching/sections/workflows.asc |
4607 | ---- /tmp/book/03-git-branching/sections/workflows.asc.tmp 2020-10-25 13:21:06.753932747 +0900 | |
4649 | +--- /tmp/book/03-git-branching/sections/workflows.asc.tmp 2020-10-25 20:17:53.264341837 +0900 | |
4608 | 4650 | +++ ../../git/progit2/progit2/book/03-git-branching/sections/workflows.asc 2020-07-04 16:36:46.723685453 +0900 |
4609 | 4651 | @@ -1,35 +1,39 @@ |
4610 | 4652 | === Branching Workflows |
@@ -4680,7 +4722,7 @@ diff -au /tmp/book/03-git-branching/sections/workflows.asc.tmp ../../git/progit2 | ||
4680 | 4722 | -When you're branching and merging, everything is being done only in your Git repository – no server communication is happening. |
4681 | 4723 | +When you're branching and merging, everything is being done only in your Git repository -- there is no communication with the server. |
4682 | 4724 | diff -au /tmp/book/04-git-server/sections/generating-ssh-key.asc.tmp ../../git/progit2/progit2/book/04-git-server/sections/generating-ssh-key.asc |
4683 | ---- /tmp/book/04-git-server/sections/generating-ssh-key.asc.tmp 2020-10-25 13:21:06.760933120 +0900 | |
4725 | +--- /tmp/book/04-git-server/sections/generating-ssh-key.asc.tmp 2020-10-25 20:17:53.332342777 +0900 | |
4684 | 4726 | +++ ../../git/progit2/progit2/book/04-git-server/sections/generating-ssh-key.asc 2020-08-05 13:56:11.288918669 +0900 |
4685 | 4727 | @@ -1,21 +1,57 @@ |
4686 | 4728 | -[[r_generate_ssh_key]] |
@@ -4746,7 +4788,7 @@ diff -au /tmp/book/04-git-server/sections/generating-ssh-key.asc.tmp ../../git/p | ||
4746 | 4788 | + |
4747 | 4789 | +For a more in-depth tutorial on creating an SSH key on multiple operating systems, see the GitHub guide on SSH keys at https://docs.github.com/en/github/authenticating-to-github/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent[]. |
4748 | 4790 | diff -au /tmp/book/04-git-server/sections/git-daemon.asc.tmp ../../git/progit2/progit2/book/04-git-server/sections/git-daemon.asc |
4749 | ---- /tmp/book/04-git-server/sections/git-daemon.asc.tmp 2020-10-25 13:21:06.770933652 +0900 | |
4791 | +--- /tmp/book/04-git-server/sections/git-daemon.asc.tmp 2020-10-25 20:17:53.383343482 +0900 | |
4750 | 4792 | +++ ../../git/progit2/progit2/book/04-git-server/sections/git-daemon.asc 2020-06-28 16:44:50.925015352 +0900 |
4751 | 4793 | @@ -1,33 +1,66 @@ |
4752 | 4794 | === Git Daemon |
@@ -4829,7 +4871,7 @@ diff -au /tmp/book/04-git-server/sections/git-daemon.asc.tmp ../../git/progit2/p | ||
4829 | 4871 | + |
4830 | 4872 | The presence of that file tells Git that it's OK to serve this project without authentication. |
4831 | 4873 | diff -au /tmp/book/04-git-server/sections/git-on-a-server.asc.tmp ../../git/progit2/progit2/book/04-git-server/sections/git-on-a-server.asc |
4832 | ---- /tmp/book/04-git-server/sections/git-on-a-server.asc.tmp 2020-10-25 13:21:06.778934077 +0900 | |
4874 | +--- /tmp/book/04-git-server/sections/git-on-a-server.asc.tmp 2020-10-25 20:17:53.433344174 +0900 | |
4833 | 4875 | +++ ../../git/progit2/progit2/book/04-git-server/sections/git-on-a-server.asc 2020-07-04 16:36:46.723685453 +0900 |
4834 | 4876 | @@ -1,45 +1,74 @@ |
4835 | 4877 | -[[r_git_on_the_server]] |
@@ -4957,7 +4999,7 @@ diff -au /tmp/book/04-git-server/sections/git-on-a-server.asc.tmp ../../git/prog | ||
4957 | 4999 | Another way to do it is to have your SSH server authenticate from an LDAP server or some other centralized authentication source that you may already have set up. |
4958 | 5000 | As long as each user can get shell access on the machine, any SSH authentication mechanism you can think of should work. |
4959 | 5001 | diff -au /tmp/book/04-git-server/sections/gitlab.asc.tmp ../../git/progit2/progit2/book/04-git-server/sections/gitlab.asc |
4960 | ---- /tmp/book/04-git-server/sections/gitlab.asc.tmp 2020-10-25 13:21:06.787934556 +0900 | |
5002 | +--- /tmp/book/04-git-server/sections/gitlab.asc.tmp 2020-10-25 20:17:53.512345266 +0900 | |
4961 | 5003 | +++ ../../git/progit2/progit2/book/04-git-server/sections/gitlab.asc 2020-09-07 09:33:11.247683703 +0900 |
4962 | 5004 | @@ -2,60 +2,63 @@ |
4963 | 5005 |
@@ -5135,7 +5177,7 @@ diff -au /tmp/book/04-git-server/sections/gitlab.asc.tmp ../../git/progit2/progi | ||
5135 | 5177 | -One benefit to GitLab is that, once the server is set up and running, you'll rarely need to tweak a configuration file or access the server via SSH; most administration and general usage can be accomplished through the in-browser interface. |
5136 | 5178 | +One benefit to GitLab is that, once the server is set up and running, you'll rarely need to tweak a configuration file or access the server via SSH; most administration and general usage can be done through the in-browser interface. |
5137 | 5179 | diff -au /tmp/book/04-git-server/sections/gitweb.asc.tmp ../../git/progit2/progit2/book/04-git-server/sections/gitweb.asc |
5138 | ---- /tmp/book/04-git-server/sections/gitweb.asc.tmp 2020-10-25 13:21:06.793934875 +0900 | |
5180 | +--- /tmp/book/04-git-server/sections/gitweb.asc.tmp 2020-10-25 20:17:53.530345515 +0900 | |
5139 | 5181 | +++ ../../git/progit2/progit2/book/04-git-server/sections/gitweb.asc 2020-07-04 16:36:46.723685453 +0900 |
5140 | 5182 | @@ -4,25 +4,67 @@ |
5141 | 5183 | Now that you have basic read/write and read-only access to your project, you may want to set up a simple web-based visualizer. |
@@ -5210,7 +5252,7 @@ diff -au /tmp/book/04-git-server/sections/gitweb.asc.tmp ../../git/progit2/progi | ||
5210 | 5252 | Again, GitWeb can be served with any CGI or Perl capable web server; if you prefer to use something else, it shouldn't be difficult to set up. |
5211 | 5253 | At this point, you should be able to visit `http://gitserver/` to view your repositories online. |
5212 | 5254 | diff -au /tmp/book/04-git-server/sections/hosted.asc.tmp ../../git/progit2/progit2/book/04-git-server/sections/hosted.asc |
5213 | ---- /tmp/book/04-git-server/sections/hosted.asc.tmp 2020-10-25 13:21:06.800935248 +0900 | |
5255 | +--- /tmp/book/04-git-server/sections/hosted.asc.tmp 2020-10-25 20:17:53.539345639 +0900 | |
5214 | 5256 | +++ ../../git/progit2/progit2/book/04-git-server/sections/hosted.asc 2020-07-04 16:36:46.725685477 +0900 |
5215 | 5257 | @@ -5,6 +5,6 @@ |
5216 | 5258 | Even if you set up and run your own server internally, you may still want to use a public hosting site for your open source code – it's generally easier for the open source community to find and help you with. |
@@ -5221,7 +5263,7 @@ diff -au /tmp/book/04-git-server/sections/hosted.asc.tmp ../../git/progit2/progi | ||
5221 | 5263 | |
5222 | 5264 | We'll cover using GitHub in detail in <<ch06-github#ch06-github>>, as it is the largest Git host out there and you may need to interact with projects hosted on it in any case, but there are dozens more to choose from should you not want to set up your own Git server. |
5223 | 5265 | diff -au /tmp/book/04-git-server/sections/protocols.asc.tmp ../../git/progit2/progit2/book/04-git-server/sections/protocols.asc |
5224 | ---- /tmp/book/04-git-server/sections/protocols.asc.tmp 2020-10-25 13:21:06.808935673 +0900 | |
5266 | +--- /tmp/book/04-git-server/sections/protocols.asc.tmp 2020-10-25 20:17:53.552345819 +0900 | |
5225 | 5267 | +++ ../../git/progit2/progit2/book/04-git-server/sections/protocols.asc 2020-07-04 16:36:46.726685489 +0900 |
5226 | 5268 | @@ -1,39 +1,55 @@ |
5227 | 5269 | === The Protocols |
@@ -5461,7 +5503,7 @@ diff -au /tmp/book/04-git-server/sections/protocols.asc.tmp ../../git/progit2/pr | ||
5461 | 5503 | It also requires firewall access to port 9418, which isn't a standard port that corporate firewalls always allow. |
5462 | 5504 | Behind big corporate firewalls, this obscure port is commonly blocked. |
5463 | 5505 | diff -au /tmp/book/04-git-server/sections/setting-up-server.asc.tmp ../../git/progit2/progit2/book/04-git-server/sections/setting-up-server.asc |
5464 | ---- /tmp/book/04-git-server/sections/setting-up-server.asc.tmp 2020-10-25 13:21:06.817936152 +0900 | |
5506 | +--- /tmp/book/04-git-server/sections/setting-up-server.asc.tmp 2020-10-25 20:17:53.564345985 +0900 | |
5465 | 5507 | +++ ../../git/progit2/progit2/book/04-git-server/sections/setting-up-server.asc 2020-06-28 16:44:50.927015646 +0900 |
5466 | 5508 | @@ -1,41 +1,148 @@ |
5467 | 5509 | -[[r_setting_up_server]] |
@@ -5623,7 +5665,7 @@ diff -au /tmp/book/04-git-server/sections/setting-up-server.asc.tmp ../../git/pr | ||
5623 | 5665 | As the output states, you can also set up a directory in the `git` user's home directory that customizes the `git-shell` command a bit. |
5624 | 5666 | For instance, you can restrict the Git commands that the server will accept or you can customize the message that users see if they try to SSH in like that. |
5625 | 5667 | diff -au /tmp/book/04-git-server/sections/smart-http.asc.tmp ../../git/progit2/progit2/book/04-git-server/sections/smart-http.asc |
5626 | ---- /tmp/book/04-git-server/sections/smart-http.asc.tmp 2020-10-25 13:21:06.825936578 +0900 | |
5668 | +--- /tmp/book/04-git-server/sections/smart-http.asc.tmp 2020-10-25 20:17:53.593346386 +0900 | |
5627 | 5669 | +++ ../../git/progit2/progit2/book/04-git-server/sections/smart-http.asc 2020-06-28 16:44:50.927015646 +0900 |
5628 | 5670 | @@ -1,28 +1,62 @@ |
5629 | 5671 | === Smart HTTP |
@@ -5693,17 +5735,20 @@ diff -au /tmp/book/04-git-server/sections/smart-http.asc.tmp ../../git/progit2/p | ||
5693 | 5735 | There are tons of ways to have Apache authenticate users, you'll have to choose and implement one of them. |
5694 | 5736 | This is just the simplest example we could come up with. |
5695 | 5737 | You'll also almost certainly want to set this up over SSL so all this data is encrypted. |
5696 | -@@ -32,6 +66,7 @@ | |
5738 | +@@ -32,9 +66,7 @@ | |
5697 | 5739 | It does not implement any authentication itself, but that can easily be controlled at the layer of the web server that invokes it. |
5698 | 5740 | You can do this with nearly any CGI-capable web server, so go with the one that you know best. |
5699 | 5741 | |
5700 | 5742 | +[NOTE] |
5701 | 5743 | ==== |
5702 | 5744 | -For more information on configuring authentication in Apache, check out the Apache docs here: http://httpd.apache.org/docs/current/howto/auth.html[] |
5745 | +-==== | |
5746 | +- | |
5747 | +-==== | |
5703 | 5748 | +For more information on configuring authentication in Apache, check out the Apache docs here: https://httpd.apache.org/docs/current/howto/auth.html[] |
5704 | 5749 | ==== |
5705 | 5750 | diff -au /tmp/book/05-distributed-git/sections/contributing.asc.tmp ../../git/progit2/progit2/book/05-distributed-git/sections/contributing.asc |
5706 | ---- /tmp/book/05-distributed-git/sections/contributing.asc.tmp 2020-10-25 13:21:06.837937216 +0900 | |
5751 | +--- /tmp/book/05-distributed-git/sections/contributing.asc.tmp 2020-10-25 20:17:53.643347077 +0900 | |
5707 | 5752 | +++ ../../git/progit2/progit2/book/05-distributed-git/sections/contributing.asc 2020-08-29 09:58:24.050195768 +0900 |
5708 | 5753 | @@ -1,11 +1,12 @@ |
5709 | 5754 | -[[r_contributing_project]] |
@@ -6641,7 +6686,7 @@ diff -au /tmp/book/05-distributed-git/sections/contributing.asc.tmp ../../git/pr | ||
6641 | 6686 | Next, you'll see how to work the other side of the coin: maintaining a Git project. |
6642 | 6687 | You'll learn how to be a benevolent dictator or integration manager. |
6643 | 6688 | diff -au /tmp/book/05-distributed-git/sections/distributed-workflows.asc.tmp ../../git/progit2/progit2/book/05-distributed-git/sections/distributed-workflows.asc |
6644 | ---- /tmp/book/05-distributed-git/sections/distributed-workflows.asc.tmp 2020-10-25 13:21:06.846937695 +0900 | |
6689 | +--- /tmp/book/05-distributed-git/sections/distributed-workflows.asc.tmp 2020-10-25 20:17:53.702347893 +0900 | |
6645 | 6690 | +++ ../../git/progit2/progit2/book/05-distributed-git/sections/distributed-workflows.asc 2020-07-04 16:36:46.728685513 +0900 |
6646 | 6691 | @@ -1,19 +1,21 @@ |
6647 | 6692 | === Distributed Workflows |
@@ -6764,7 +6809,7 @@ diff -au /tmp/book/05-distributed-git/sections/distributed-workflows.asc.tmp ../ | ||
6764 | 6809 | |
6765 | 6810 | These are some commonly used workflows that are possible with a distributed system like Git, but you can see that many variations are possible to suit your particular real-world workflow. |
6766 | 6811 | diff -au /tmp/book/05-distributed-git/sections/maintaining.asc.tmp ../../git/progit2/progit2/book/05-distributed-git/sections/maintaining.asc |
6767 | ---- /tmp/book/05-distributed-git/sections/maintaining.asc.tmp 2020-10-25 13:21:06.856938227 +0900 | |
6812 | +--- /tmp/book/05-distributed-git/sections/maintaining.asc.tmp 2020-10-25 20:17:53.768348806 +0900 | |
6768 | 6813 | +++ ../../git/progit2/progit2/book/05-distributed-git/sections/maintaining.asc 2020-07-07 09:30:48.190756402 +0900 |
6769 | 6814 | @@ -1,64 +1,122 @@ |
6770 | 6815 | === Maintaining a Project |
@@ -7399,7 +7444,7 @@ diff -au /tmp/book/05-distributed-git/sections/maintaining.asc.tmp ../../git/pro | ||
7399 | 7444 | + |
7400 | 7445 | You get a clean summary of all the commits since v1.0.1, grouped by author, that you can email to your list. |
7401 | 7446 | diff -au /tmp/book/06-github/sections/1-setting-up-account.asc.tmp ../../git/progit2/progit2/book/06-github/sections/1-setting-up-account.asc |
7402 | ---- /tmp/book/06-github/sections/1-setting-up-account.asc.tmp 2020-10-25 13:21:06.863938599 +0900 | |
7447 | +--- /tmp/book/06-github/sections/1-setting-up-account.asc.tmp 2020-10-25 20:17:53.882350382 +0900 | |
7403 | 7448 | +++ ../../git/progit2/progit2/book/06-github/sections/1-setting-up-account.asc 2020-07-04 16:36:46.730685537 +0900 |
7404 | 7449 | @@ -1,21 +1,22 @@ |
7405 | 7450 | === Account Setup and Configuration |
@@ -7501,7 +7546,7 @@ diff -au /tmp/book/06-github/sections/1-setting-up-account.asc.tmp ../../git/pro | ||
7501 | 7546 | The second address is verified and so can be set as the primary if you wish to switch them. |
7502 | 7547 | The final address is unverified, meaning that you can't make it your primary address. |
7503 | 7548 | diff -au /tmp/book/06-github/sections/2-contributing.asc.tmp ../../git/progit2/progit2/book/06-github/sections/2-contributing.asc |
7504 | ---- /tmp/book/06-github/sections/2-contributing.asc.tmp 2020-10-25 13:21:06.875939238 +0900 | |
7549 | +--- /tmp/book/06-github/sections/2-contributing.asc.tmp 2020-10-25 20:17:53.910350769 +0900 | |
7505 | 7550 | +++ ../../git/progit2/progit2/book/06-github/sections/2-contributing.asc 2020-09-30 09:43:39.046514305 +0900 |
7506 | 7551 | @@ -4,77 +4,131 @@ |
7507 | 7552 |
@@ -8158,7 +8203,7 @@ diff -au /tmp/book/06-github/sections/2-contributing.asc.tmp ../../git/progit2/p | ||
8158 | 8203 | +Git will happily do this work for you silently, but it won't warn you if you make a commit to `master`, pull from `progit`, then push to `origin` -- all of those operations are valid with this setup. |
8159 | 8204 | +So you'll have to take care never to commit directly to `master`, since that branch effectively belongs to the upstream repository. |
8160 | 8205 | diff -au /tmp/book/06-github/sections/3-maintaining.asc.tmp ../../git/progit2/progit2/book/06-github/sections/3-maintaining.asc |
8161 | ---- /tmp/book/06-github/sections/3-maintaining.asc.tmp 2020-10-25 13:21:06.885939770 +0900 | |
8206 | +--- /tmp/book/06-github/sections/3-maintaining.asc.tmp 2020-10-25 20:17:53.958351433 +0900 | |
8162 | 8207 | +++ ../../git/progit2/progit2/book/06-github/sections/3-maintaining.asc 2020-07-04 16:36:46.732685561 +0900 |
8163 | 8208 | @@ -1,4 +1,4 @@ |
8164 | 8209 | -[[r_maintaining_gh_project]] |
@@ -8512,7 +8557,7 @@ diff -au /tmp/book/06-github/sections/3-maintaining.asc.tmp ../../git/progit2/pr | ||
8512 | 8557 | |
8513 | 8558 | This is helpful if you are abandoning a project and someone wants to take it over, or if your project is getting bigger and want to move it into an organization. |
8514 | 8559 | diff -au /tmp/book/06-github/sections/4-managing-organization.asc.tmp ../../git/progit2/progit2/book/06-github/sections/4-managing-organization.asc |
8515 | ---- /tmp/book/06-github/sections/4-managing-organization.asc.tmp 2020-10-25 13:21:06.893940195 +0900 | |
8560 | +--- /tmp/book/06-github/sections/4-managing-organization.asc.tmp 2020-10-25 20:17:54.026352373 +0900 | |
8516 | 8561 | +++ ../../git/progit2/progit2/book/06-github/sections/4-managing-organization.asc 2020-07-04 16:36:46.732685561 +0900 |
8517 | 8562 | @@ -1,6 +1,7 @@ |
8518 | 8563 | -[[r_github_orgs]] |
@@ -8580,7 +8625,7 @@ diff -au /tmp/book/06-github/sections/4-managing-organization.asc.tmp ../../git/ | ||
8580 | 8625 | |
8581 | 8626 | You can also filter down to specific types of events, specific places or specific people. |
8582 | 8627 | diff -au /tmp/book/06-github/sections/5-scripting.asc.tmp ../../git/progit2/progit2/book/06-github/sections/5-scripting.asc |
8583 | ---- /tmp/book/06-github/sections/5-scripting.asc.tmp 2020-10-25 13:21:06.902940674 +0900 | |
8628 | +--- /tmp/book/06-github/sections/5-scripting.asc.tmp 2020-10-25 20:17:54.050352705 +0900 | |
8584 | 8629 | +++ ../../git/progit2/progit2/book/06-github/sections/5-scripting.asc 2020-07-04 16:36:46.733685573 +0900 |
8585 | 8630 | @@ -5,7 +5,7 @@ |
8586 | 8631 | Luckily for us, GitHub is really quite hackable in many ways. |
@@ -8787,7 +8832,7 @@ diff -au /tmp/book/06-github/sections/5-scripting.asc.tmp ../../git/progit2/prog | ||
8787 | 8832 | Hopefully these tools can help you customize and modify GitHub to work better for your specific workflows. |
8788 | 8833 | For complete documentation on the entire API as well as guides for common tasks, check out https://developer.github.com[]. |
8789 | 8834 | diff -au /tmp/book/07-git-tools/sections/advanced-merging.asc.tmp ../../git/progit2/progit2/book/07-git-tools/sections/advanced-merging.asc |
8790 | ---- /tmp/book/07-git-tools/sections/advanced-merging.asc.tmp 2020-10-25 13:21:06.914941312 +0900 | |
8835 | +--- /tmp/book/07-git-tools/sections/advanced-merging.asc.tmp 2020-10-25 20:17:54.146354033 +0900 | |
8791 | 8836 | +++ ../../git/progit2/progit2/book/07-git-tools/sections/advanced-merging.asc 2020-07-04 16:36:46.733685573 +0900 |
8792 | 8837 | @@ -1,4 +1,4 @@ |
8793 | 8838 | -[[r_advanced_merging]] |
@@ -9410,7 +9455,7 @@ diff -au /tmp/book/07-git-tools/sections/advanced-merging.asc.tmp ../../git/prog | ||
9410 | 9455 | In that case, instead of getting conflict markers in the file with ``hello mundo'' on one side and ``hola world'' on the other, it will simply pick ``hola world''. |
9411 | 9456 | However, all the other non-conflicting changes on that branch are merged successfully in. |
9412 | 9457 | |
9413 | -@@ -271,9 +664,19 @@ | |
9458 | +@@ -271,6 +664,14 @@ | |
9414 | 9459 | It will record a new merge commit with both branches as parents, but it will not even look at the branch you're merging in. |
9415 | 9460 | It will simply record as the result of the merge the exact code in your current branch. |
9416 | 9461 |
@@ -9425,13 +9470,8 @@ diff -au /tmp/book/07-git-tools/sections/advanced-merging.asc.tmp ../../git/prog | ||
9425 | 9470 | You can see that there is no difference between the branch we were on and the result of the merge. |
9426 | 9471 | |
9427 | 9472 | This can often be useful to basically trick Git into thinking that a branch is already merged when doing a merge later on. |
9428 | - For example, say you branched off a `release` branch and have done some work on it that you will want to merge back into your `master` branch at some point. | |
9429 | - In the meantime some bugfix on `master` needs to be backported into your `release` branch. | |
9430 | - You can merge the bugfix branch into the `release` branch and also `merge -s ours` the same branch into your `master` branch (even though the fix is already there) so when you later merge the `release` branch again, there are no conflicts from the bugfix. | |
9431 | -+ | |
9432 | -+include::subtree-merges.asc[] | |
9433 | 9473 | diff -au /tmp/book/07-git-tools/sections/bundling.asc.tmp ../../git/progit2/progit2/book/07-git-tools/sections/bundling.asc |
9434 | ---- /tmp/book/07-git-tools/sections/bundling.asc.tmp 2020-10-25 13:21:06.922941738 +0900 | |
9474 | +--- /tmp/book/07-git-tools/sections/bundling.asc.tmp 2020-10-25 20:17:54.194354697 +0900 | |
9435 | 9475 | +++ ../../git/progit2/progit2/book/07-git-tools/sections/bundling.asc 2020-06-28 16:44:50.939017414 +0900 |
9436 | 9476 | @@ -1,4 +1,4 @@ |
9437 | 9477 | -[[r_bundling]] |
@@ -9600,7 +9640,7 @@ diff -au /tmp/book/07-git-tools/sections/bundling.asc.tmp ../../git/progit2/prog | ||
9600 | 9640 | |
9601 | 9641 | So, `git bundle` can be really useful for sharing or doing network-type operations when you don't have the proper network or shared repository to do so. |
9602 | 9642 | diff -au /tmp/book/07-git-tools/sections/credentials.asc.tmp ../../git/progit2/progit2/book/07-git-tools/sections/credentials.asc |
9603 | ---- /tmp/book/07-git-tools/sections/credentials.asc.tmp 2020-10-25 13:21:06.928942057 +0900 | |
9643 | +--- /tmp/book/07-git-tools/sections/credentials.asc.tmp 2020-10-25 20:17:54.243355374 +0900 | |
9604 | 9644 | +++ ../../git/progit2/progit2/book/07-git-tools/sections/credentials.asc 2020-06-28 16:44:50.939017414 +0900 |
9605 | 9645 | @@ -1,6 +1,8 @@ |
9606 | 9646 | -[[r_credential_caching]] |
@@ -9756,7 +9796,7 @@ diff -au /tmp/book/07-git-tools/sections/credentials.asc.tmp ../../git/progit2/p | ||
9756 | 9796 | + |
9757 | 9797 | As you can see, extending this system is pretty straightforward, and can solve some common problems for you and your team. |
9758 | 9798 | diff -au /tmp/book/07-git-tools/sections/debugging.asc.tmp ../../git/progit2/progit2/book/07-git-tools/sections/debugging.asc |
9759 | ---- /tmp/book/07-git-tools/sections/debugging.asc.tmp 2020-10-25 13:21:06.934942377 +0900 | |
9799 | +--- /tmp/book/07-git-tools/sections/debugging.asc.tmp 2020-10-25 20:17:54.295356093 +0900 | |
9760 | 9800 | +++ ../../git/progit2/progit2/book/07-git-tools/sections/debugging.asc 2020-06-28 16:44:50.939017414 +0900 |
9761 | 9801 | @@ -1,62 +1,149 @@ |
9762 | 9802 | === Debugging with Git |
@@ -9928,7 +9968,7 @@ diff -au /tmp/book/07-git-tools/sections/debugging.asc.tmp ../../git/progit2/pro | ||
9928 | 9968 | Doing so automatically runs `test-error.sh` on each checked-out commit until Git finds the first broken commit. |
9929 | 9969 | You can also run something like `make` or `make tests` or whatever you have that runs automated tests for you. |
9930 | 9970 | diff -au /tmp/book/07-git-tools/sections/interactive-staging.asc.tmp ../../git/progit2/progit2/book/07-git-tools/sections/interactive-staging.asc |
9931 | ---- /tmp/book/07-git-tools/sections/interactive-staging.asc.tmp 2020-10-25 13:21:06.946943015 +0900 | |
9971 | +--- /tmp/book/07-git-tools/sections/interactive-staging.asc.tmp 2020-10-25 20:17:54.339356702 +0900 | |
9932 | 9972 | +++ ../../git/progit2/progit2/book/07-git-tools/sections/interactive-staging.asc 2020-06-28 16:44:50.939017414 +0900 |
9933 | 9973 | @@ -1,57 +1,204 @@ |
9934 | 9974 | -[[r_interactive_staging]] |
@@ -10161,7 +10201,7 @@ diff -au /tmp/book/07-git-tools/sections/interactive-staging.asc.tmp ../../git/p | ||
10161 | 10201 | +Furthermore, you can use patch mode for partially resetting files with the `git reset --patch` command, for checking out parts of files with the `git checkout --patch` command and for stashing parts of files with the `git stash save --patch` command. |
10162 | 10202 | We'll go into more details on each of these as we get to more advanced usages of these commands. |
10163 | 10203 | diff -au /tmp/book/07-git-tools/sections/replace.asc.tmp ../../git/progit2/progit2/book/07-git-tools/sections/replace.asc |
10164 | ---- /tmp/book/07-git-tools/sections/replace.asc.tmp 2020-10-25 13:21:06.954943440 +0900 | |
10204 | +--- /tmp/book/07-git-tools/sections/replace.asc.tmp 2020-10-25 20:17:54.352356881 +0900 | |
10165 | 10205 | +++ ../../git/progit2/progit2/book/07-git-tools/sections/replace.asc 2020-07-04 16:36:46.733685573 +0900 |
10166 | 10206 | @@ -1,13 +1,13 @@ |
10167 | 10207 | -[[r_replace]] |
@@ -10381,7 +10421,7 @@ diff -au /tmp/book/07-git-tools/sections/replace.asc.tmp ../../git/progit2/progi | ||
10381 | 10421 | This means that it's easy to share our replacement with others, because we can push this to our server and other people can easily download it. |
10382 | 10422 | This is not that helpful in the history grafting scenario we've gone over here (since everyone would be downloading both histories anyhow, so why separate them?) but it can be useful in other circumstances. |
10383 | 10423 | diff -au /tmp/book/07-git-tools/sections/rerere.asc.tmp ../../git/progit2/progit2/book/07-git-tools/sections/rerere.asc |
10384 | ---- /tmp/book/07-git-tools/sections/rerere.asc.tmp 2020-10-25 13:21:06.960943760 +0900 | |
10424 | +--- /tmp/book/07-git-tools/sections/rerere.asc.tmp 2020-10-25 20:17:54.364357047 +0900 | |
10385 | 10425 | +++ ../../git/progit2/progit2/book/07-git-tools/sections/rerere.asc 2020-06-28 16:44:50.940017561 +0900 |
10386 | 10426 | @@ -1,68 +1,252 @@ |
10387 | 10427 | -[[r_rerere]] |
@@ -10657,7 +10697,7 @@ diff -au /tmp/book/07-git-tools/sections/rerere.asc.tmp ../../git/progit2/progit | ||
10657 | 10697 | + |
10658 | 10698 | +So, if you do a lot of re-merges, or want to keep a topic branch up to date with your `master` branch without a ton of merges, or you rebase often, you can turn on `rerere` to help your life out a bit. |
10659 | 10699 | diff -au /tmp/book/07-git-tools/sections/reset.asc.tmp ../../git/progit2/progit2/book/07-git-tools/sections/reset.asc |
10660 | ---- /tmp/book/07-git-tools/sections/reset.asc.tmp 2020-10-25 13:21:06.969944238 +0900 | |
10700 | +--- /tmp/book/07-git-tools/sections/reset.asc.tmp 2020-10-25 20:17:54.391357421 +0900 | |
10661 | 10701 | +++ ../../git/progit2/progit2/book/07-git-tools/sections/reset.asc 2020-07-04 16:36:46.733685573 +0900 |
10662 | 10702 | @@ -1,16 +1,16 @@ |
10663 | 10703 | -[[r_git_reset]] |
@@ -11006,7 +11046,7 @@ diff -au /tmp/book/07-git-tools/sections/reset.asc.tmp ../../git/progit2/progit2 | ||
11006 | 11046 | +| `checkout [commit] <paths>` | NO | YES | YES | *NO* |
11007 | 11047 | |================================ |
11008 | 11048 | diff -au /tmp/book/07-git-tools/sections/revision-selection.asc.tmp ../../git/progit2/progit2/book/07-git-tools/sections/revision-selection.asc |
11009 | ---- /tmp/book/07-git-tools/sections/revision-selection.asc.tmp 2020-10-25 13:21:06.977944664 +0900 | |
11049 | +--- /tmp/book/07-git-tools/sections/revision-selection.asc.tmp 2020-10-25 20:17:54.439358084 +0900 | |
11010 | 11050 | +++ ../../git/progit2/progit2/book/07-git-tools/sections/revision-selection.asc 2020-10-24 08:43:10.529548324 +0900 |
11011 | 11051 | @@ -1,36 +1,76 @@ |
11012 | 11052 | -[[r_revision_selection]] |
@@ -11479,7 +11519,7 @@ diff -au /tmp/book/07-git-tools/sections/revision-selection.asc.tmp ../../git/pr | ||
11479 | 11519 | |
11480 | 11520 | With these tools, you can much more easily let Git know what commit or commits you want to inspect. |
11481 | 11521 | diff -au /tmp/book/07-git-tools/sections/rewriting-history.asc.tmp ../../git/progit2/progit2/book/07-git-tools/sections/rewriting-history.asc |
11482 | ---- /tmp/book/07-git-tools/sections/rewriting-history.asc.tmp 2020-10-25 13:21:06.989945302 +0900 | |
11522 | +--- /tmp/book/07-git-tools/sections/rewriting-history.asc.tmp 2020-10-25 20:17:54.487358748 +0900 | |
11483 | 11523 | +++ ../../git/progit2/progit2/book/07-git-tools/sections/rewriting-history.asc 2020-09-12 09:27:13.222663694 +0900 |
11484 | 11524 | @@ -1,114 +1,346 @@ |
11485 | 11525 | -[[r_rewriting_history]] |
@@ -11918,7 +11958,7 @@ diff -au /tmp/book/07-git-tools/sections/rewriting-history.asc.tmp ../../git/pro | ||
11918 | 11958 | This goes through and rewrites every commit to have your new address. |
11919 | 11959 | Because commits contain the SHA-1 values of their parents, this command changes every commit SHA-1 in your history, not just those that have the matching email address. |
11920 | 11960 | diff -au /tmp/book/07-git-tools/sections/searching.asc.tmp ../../git/progit2/progit2/book/07-git-tools/sections/searching.asc |
11921 | ---- /tmp/book/07-git-tools/sections/searching.asc.tmp 2020-10-25 13:21:06.994945568 +0900 | |
11961 | +--- /tmp/book/07-git-tools/sections/searching.asc.tmp 2020-10-25 20:17:54.529359329 +0900 | |
11922 | 11962 | +++ ../../git/progit2/progit2/book/07-git-tools/sections/searching.asc 2020-06-28 16:44:50.941017708 +0900 |
11923 | 11963 | @@ -1,30 +1,91 @@ |
11924 | 11964 | -[[r_searching]] |
@@ -12107,7 +12147,7 @@ diff -au /tmp/book/07-git-tools/sections/searching.asc.tmp ../../git/progit2/pro | ||
12107 | 12147 | +For example, this would have done the same thing as the example above: `git log -L '/unsigned long git_deflate_bound/',/^}/:zlib.c`. |
12108 | 12148 | You could also give it a range of lines or a single line number and you'll get the same sort of output. |
12109 | 12149 | diff -au /tmp/book/07-git-tools/sections/signing.asc.tmp ../../git/progit2/progit2/book/07-git-tools/sections/signing.asc |
12110 | ---- /tmp/book/07-git-tools/sections/signing.asc.tmp 2020-10-25 13:21:07.002945994 +0900 | |
12150 | +--- /tmp/book/07-git-tools/sections/signing.asc.tmp 2020-10-25 20:17:54.576359979 +0900 | |
12111 | 12151 | +++ ../../git/progit2/progit2/book/07-git-tools/sections/signing.asc 2020-06-28 16:44:50.941017708 +0900 |
12112 | 12152 | @@ -1,4 +1,4 @@ |
12113 | 12153 | -[[r_signing]] |
@@ -12316,7 +12356,7 @@ diff -au /tmp/book/07-git-tools/sections/signing.asc.tmp ../../git/progit2/progi | ||
12316 | 12356 | |
12317 | 12357 | Signing tags and commits is great, but if you decide to use this in your normal workflow, you'll have to make sure that everyone on your team understands how to do so. |
12318 | 12358 | diff -au /tmp/book/07-git-tools/sections/stashing-cleaning.asc.tmp ../../git/progit2/progit2/book/07-git-tools/sections/stashing-cleaning.asc |
12319 | ---- /tmp/book/07-git-tools/sections/stashing-cleaning.asc.tmp 2020-10-25 13:21:07.011946473 +0900 | |
12359 | +--- /tmp/book/07-git-tools/sections/stashing-cleaning.asc.tmp 2020-10-25 20:17:54.601360324 +0900 | |
12320 | 12360 | +++ ../../git/progit2/progit2/book/07-git-tools/sections/stashing-cleaning.asc 2020-06-28 16:44:50.941017708 +0900 |
12321 | 12361 | @@ -1,72 +1,234 @@ |
12322 | 12362 | -[[r_git_stashing]] |
@@ -12645,7 +12685,7 @@ diff -au /tmp/book/07-git-tools/sections/stashing-cleaning.asc.tmp ../../git/pro | ||
12645 | 12685 | +In cases like that, you need to add a second `-f` option for emphasis. |
12646 | 12686 | +==== |
12647 | 12687 | diff -au /tmp/book/07-git-tools/sections/submodules.asc.tmp ../../git/progit2/progit2/book/07-git-tools/sections/submodules.asc |
12648 | ---- /tmp/book/07-git-tools/sections/submodules.asc.tmp 2020-10-25 13:21:07.024947164 +0900 | |
12688 | +--- /tmp/book/07-git-tools/sections/submodules.asc.tmp 2020-10-25 20:17:54.637360822 +0900 | |
12649 | 12689 | +++ ../../git/progit2/progit2/book/07-git-tools/sections/submodules.asc 2020-07-21 09:34:56.067548780 +0900 |
12650 | 12690 | @@ -1,21 +1,22 @@ |
12651 | 12691 | -[[r_git_submodules]] |
@@ -13695,7 +13735,7 @@ diff -au /tmp/book/07-git-tools/sections/submodules.asc.tmp ../../git/progit2/pr | ||
13695 | 13735 | You may need to go into your submodule directory and run a `git checkout .` to get all your files back. |
13696 | 13736 | You could run this in a `submodule foreach` script to run it for multiple submodules. |
13697 | 13737 | diff -au /tmp/book/07-git-tools/sections/subtree-merges.asc.tmp ../../git/progit2/progit2/book/07-git-tools/sections/subtree-merges.asc |
13698 | ---- /tmp/book/07-git-tools/sections/subtree-merges.asc.tmp 2020-10-25 13:21:07.032947590 +0900 | |
13738 | +--- /tmp/book/07-git-tools/sections/subtree-merges.asc.tmp 2020-10-25 20:17:54.706361776 +0900 | |
13699 | 13739 | +++ ../../git/progit2/progit2/book/07-git-tools/sections/subtree-merges.asc 2020-07-04 16:36:46.737685622 +0900 |
13700 | 13740 | @@ -1,4 +1,4 @@ |
13701 | 13741 | -[[r_subtree_merge]] |
@@ -13806,7 +13846,7 @@ diff -au /tmp/book/07-git-tools/sections/subtree-merges.asc.tmp ../../git/progit | ||
13806 | 13846 | +$ git diff-tree -p rack_remote/master |
13807 | 13847 | +---- |
13808 | 13848 | diff -au /tmp/book/08-customizing-git/sections/attributes.asc.tmp ../../git/progit2/progit2/book/08-customizing-git/sections/attributes.asc |
13809 | ---- /tmp/book/08-customizing-git/sections/attributes.asc.tmp 2020-10-25 13:21:07.043948175 +0900 | |
13849 | +--- /tmp/book/08-customizing-git/sections/attributes.asc.tmp 2020-10-25 20:17:54.787362897 +0900 | |
13810 | 13850 | +++ ../../git/progit2/progit2/book/08-customizing-git/sections/attributes.asc 2020-07-04 16:36:46.738685634 +0900 |
13811 | 13851 | @@ -1,5 +1,6 @@ |
13812 | 13852 | === Git Attributes |
@@ -14186,7 +14226,7 @@ diff -au /tmp/book/08-customizing-git/sections/attributes.asc.tmp ../../git/prog | ||
14186 | 14226 | + |
14187 | 14227 | In this case, `database.xml` stays at whatever version you originally had. |
14188 | 14228 | diff -au /tmp/book/08-customizing-git/sections/config.asc.tmp ../../git/progit2/progit2/book/08-customizing-git/sections/config.asc |
14189 | ---- /tmp/book/08-customizing-git/sections/config.asc.tmp 2020-10-25 13:21:07.057948919 +0900 | |
14229 | +--- /tmp/book/08-customizing-git/sections/config.asc.tmp 2020-10-25 20:17:54.848363750 +0900 | |
14190 | 14230 | +++ ../../git/progit2/progit2/book/08-customizing-git/sections/config.asc 2020-08-10 10:02:15.170231399 +0900 |
14191 | 14231 | @@ -1,97 +1,202 @@ |
14192 | 14232 | -[[r_git_config]] |
@@ -14720,7 +14760,7 @@ diff -au /tmp/book/08-customizing-git/sections/config.asc.tmp ../../git/progit2/ | ||
14720 | 14760 | -There are also more interesting ways to do this on a per-user basis via ACLs, as you'll learn in <<r_an_example_git_enforced_policy>>. |
14721 | 14761 | +There are also more interesting ways to do this on a per-user basis via ACLs, as you'll learn in <<ch08-customizing-git#_an_example_git_enforced_policy>>. |
14722 | 14762 | diff -au /tmp/book/08-customizing-git/sections/hooks.asc.tmp ../../git/progit2/progit2/book/08-customizing-git/sections/hooks.asc |
14723 | ---- /tmp/book/08-customizing-git/sections/hooks.asc.tmp 2020-10-25 13:21:07.066949398 +0900 | |
14763 | +--- /tmp/book/08-customizing-git/sections/hooks.asc.tmp 2020-10-25 20:17:54.915364687 +0900 | |
14724 | 14764 | +++ ../../git/progit2/progit2/book/08-customizing-git/sections/hooks.asc 2020-09-26 08:56:07.952296414 +0900 |
14725 | 14765 | @@ -1,6 +1,7 @@ |
14726 | 14766 | -[[r_git_hooks]] |
@@ -14786,7 +14826,7 @@ diff -au /tmp/book/08-customizing-git/sections/hooks.asc.tmp ../../git/progit2/p | ||
14786 | 14826 | +If you're writing a script/hook that others will need to read, prefer the long versions of command-line flags; six months from now you'll thank us. |
14787 | 14827 | +==== |
14788 | 14828 | diff -au /tmp/book/08-customizing-git/sections/policy.asc.tmp ../../git/progit2/progit2/book/08-customizing-git/sections/policy.asc |
14789 | ---- /tmp/book/08-customizing-git/sections/policy.asc.tmp 2020-10-25 13:21:07.075949877 +0900 | |
14829 | +--- /tmp/book/08-customizing-git/sections/policy.asc.tmp 2020-10-25 20:17:54.984365650 +0900 | |
14790 | 14830 | +++ ../../git/progit2/progit2/book/08-customizing-git/sections/policy.asc 2020-07-04 16:36:46.738685634 +0900 |
14791 | 14831 | @@ -1,6 +1,7 @@ |
14792 | 14832 | -[[r_an_example_git_enforced_policy]] |
@@ -15197,7 +15237,7 @@ diff -au /tmp/book/08-customizing-git/sections/policy.asc.tmp ../../git/progit2/ | ||
15197 | 15237 | You're looking for any commit that is reachable from the last commit on the remote and that isn't reachable from any parent of any of the SHA-1s you're trying to push up – meaning it's a fast-forward. |
15198 | 15238 | Warning: file not found: ../../git/progit2/progit2-ja/book/09-git-and-other-scms/sections/client-bzr.asc |
15199 | 15239 | diff -au /tmp/book/09-git-and-other-scms/sections/client-hg.asc.tmp ../../git/progit2/progit2/book/09-git-and-other-scms/sections/client-hg.asc |
15200 | ---- /tmp/book/09-git-and-other-scms/sections/client-hg.asc.tmp 2020-10-25 13:21:07.085950409 +0900 | |
15240 | +--- /tmp/book/09-git-and-other-scms/sections/client-hg.asc.tmp 2020-10-25 20:17:55.062366743 +0900 | |
15201 | 15241 | +++ ../../git/progit2/progit2/book/09-git-and-other-scms/sections/client-hg.asc 2020-07-01 10:48:37.622009668 +0900 |
15202 | 15242 | @@ -1,5 +1,7 @@ |
15203 | 15243 | ==== Git and Mercurial |
@@ -15583,7 +15623,7 @@ diff -au /tmp/book/09-git-and-other-scms/sections/client-hg.asc.tmp ../../git/pr | ||
15583 | 15623 | |
15584 | 15624 | Git and Mercurial are similar enough that working across the boundary is fairly painless. |
15585 | 15625 | diff -au /tmp/book/09-git-and-other-scms/sections/client-p4.asc.tmp ../../git/progit2/progit2/book/09-git-and-other-scms/sections/client-p4.asc |
15586 | ---- /tmp/book/09-git-and-other-scms/sections/client-p4.asc.tmp 2020-10-25 13:21:07.096950994 +0900 | |
15626 | +--- /tmp/book/09-git-and-other-scms/sections/client-p4.asc.tmp 2020-10-25 20:17:55.124367614 +0900 | |
15587 | 15627 | +++ ../../git/progit2/progit2/book/09-git-and-other-scms/sections/client-p4.asc 2020-07-04 16:36:46.740685658 +0900 |
15588 | 15628 | @@ -1,5 +1,7 @@ |
15589 | 15629 | ==== Git and Perforce |
@@ -16216,7 +16256,7 @@ diff -au /tmp/book/09-git-and-other-scms/sections/client-p4.asc.tmp ../../git/pr | ||
16216 | 16256 | |
16217 | 16257 | If we now `git checkout -b dev p4/project/dev` and make some commits, git-p4 is smart enough to target the right branch when we do `git p4 submit`. |
16218 | 16258 | diff -au /tmp/book/09-git-and-other-scms/sections/client-svn.asc.tmp ../../git/progit2/progit2/book/09-git-and-other-scms/sections/client-svn.asc |
16219 | ---- /tmp/book/09-git-and-other-scms/sections/client-svn.asc.tmp 2020-10-25 13:21:07.104951419 +0900 | |
16259 | +--- /tmp/book/09-git-and-other-scms/sections/client-svn.asc.tmp 2020-10-25 20:17:55.181368414 +0900 | |
16220 | 16260 | +++ ../../git/progit2/progit2/book/09-git-and-other-scms/sections/client-svn.asc 2020-07-04 16:36:46.740685658 +0900 |
16221 | 16261 | @@ -1,10 +1,12 @@ |
16222 | 16262 | -[[r_git_svn]] |
@@ -16669,7 +16709,7 @@ diff -au /tmp/book/09-git-and-other-scms/sections/client-svn.asc.tmp ../../git/p | ||
16669 | 16709 | |
16670 | 16710 | Warning: file not found: ../../git/progit2/progit2-ja/book/09-git-and-other-scms/sections/import-bzr.asc |
16671 | 16711 | diff -au /tmp/book/09-git-and-other-scms/sections/import-custom.asc.tmp ../../git/progit2/progit2/book/09-git-and-other-scms/sections/import-custom.asc |
16672 | ---- /tmp/book/09-git-and-other-scms/sections/import-custom.asc.tmp 2020-10-25 13:21:07.115952004 +0900 | |
16712 | +--- /tmp/book/09-git-and-other-scms/sections/import-custom.asc.tmp 2020-10-25 20:17:55.227369059 +0900 | |
16673 | 16713 | +++ ../../git/progit2/progit2/book/09-git-and-other-scms/sections/import-custom.asc 2020-06-28 16:44:50.946018445 +0900 |
16674 | 16714 | @@ -1,4 +1,4 @@ |
16675 | 16715 | -[[r_custom_importer]] |
@@ -17042,7 +17082,7 @@ diff -au /tmp/book/09-git-and-other-scms/sections/import-custom.asc.tmp ../../gi | ||
17042 | 17082 | You can do a lot more with the `fast-import` tool – handle different modes, binary data, multiple branches and merging, tags, progress indicators, and more. |
17043 | 17083 | A number of examples of more complex scenarios are available in the `contrib/fast-import` directory of the Git source code. |
17044 | 17084 | diff -au /tmp/book/09-git-and-other-scms/sections/import-hg.asc.tmp ../../git/progit2/progit2/book/09-git-and-other-scms/sections/import-hg.asc |
17045 | ---- /tmp/book/09-git-and-other-scms/sections/import-hg.asc.tmp 2020-10-25 13:21:07.124952483 +0900 | |
17085 | +--- /tmp/book/09-git-and-other-scms/sections/import-hg.asc.tmp 2020-10-25 20:17:55.270369662 +0900 | |
17046 | 17086 | +++ ../../git/progit2/progit2/book/09-git-and-other-scms/sections/import-hg.asc 2020-06-28 16:44:50.947018592 +0900 |
17047 | 17087 | @@ -3,25 +3,122 @@ |
17048 | 17088 | (((Mercurial)))(((Importing, from Mercurial))) |
@@ -17170,7 +17210,7 @@ diff -au /tmp/book/09-git-and-other-scms/sections/import-hg.asc.tmp ../../git/pr | ||
17170 | 17210 | +$ git push origin --all |
17171 | 17211 | +---- |
17172 | 17212 | diff -au /tmp/book/09-git-and-other-scms/sections/import-p4.asc.tmp ../../git/progit2/progit2/book/09-git-and-other-scms/sections/import-p4.asc |
17173 | ---- /tmp/book/09-git-and-other-scms/sections/import-p4.asc.tmp 2020-10-25 13:21:07.136953121 +0900 | |
17213 | +--- /tmp/book/09-git-and-other-scms/sections/import-p4.asc.tmp 2020-10-25 20:17:55.316370306 +0900 | |
17174 | 17214 | +++ ../../git/progit2/progit2/book/09-git-and-other-scms/sections/import-p4.asc 2020-06-28 16:44:50.947018592 +0900 |
17175 | 17215 | @@ -1,4 +1,4 @@ |
17176 | 17216 | -[[r_perforce_import]] |
@@ -17280,7 +17320,7 @@ diff -au /tmp/book/09-git-and-other-scms/sections/import-p4.asc.tmp ../../git/pr | ||
17280 | 17320 | + |
17281 | 17321 | Your import is ready to push up to your new Git server. |
17282 | 17322 | diff -au /tmp/book/09-git-and-other-scms/sections/import-svn.asc.tmp ../../git/progit2/progit2/book/09-git-and-other-scms/sections/import-svn.asc |
17283 | ---- /tmp/book/09-git-and-other-scms/sections/import-svn.asc.tmp 2020-10-25 13:21:07.146953653 +0900 | |
17323 | +--- /tmp/book/09-git-and-other-scms/sections/import-svn.asc.tmp 2020-10-25 20:17:55.361370939 +0900 | |
17284 | 17324 | +++ ../../git/progit2/progit2/book/09-git-and-other-scms/sections/import-svn.asc 2020-07-04 16:36:46.743685694 +0900 |
17285 | 17325 | @@ -12,21 +12,76 @@ |
17286 | 17326 | If you want to map this to better Git author data, you need a mapping from the Subversion users to the Git authors. |
@@ -17421,7 +17461,7 @@ diff -au /tmp/book/09-git-and-other-scms/sections/import-svn.asc.tmp ../../git/p | ||
17421 | 17461 | + |
17422 | 17462 | All your branches and tags should be on your new Git server in a nice, clean import. |
17423 | 17463 | diff -au /tmp/book/10-git-internals/sections/environment.asc.tmp ../../git/progit2/progit2/book/10-git-internals/sections/environment.asc |
17424 | ---- /tmp/book/10-git-internals/sections/environment.asc.tmp 2020-10-25 13:21:07.155954132 +0900 | |
17464 | +--- /tmp/book/10-git-internals/sections/environment.asc.tmp 2020-10-25 20:17:55.448372159 +0900 | |
17425 | 17465 | +++ ../../git/progit2/progit2/book/10-git-internals/sections/environment.asc 2020-07-01 10:48:37.623009671 +0900 |
17426 | 17466 | @@ -4,6 +4,7 @@ |
17427 | 17467 | Occasionally, it comes in handy to know what these are, and how they can be used to make Git behave the way you want it to. |
@@ -17605,7 +17645,7 @@ diff -au /tmp/book/10-git-internals/sections/environment.asc.tmp ../../git/progi | ||
17605 | 17645 | +9e3d55a HEAD@{0}: my action: My message |
17606 | 17646 | +---- |
17607 | 17647 | diff -au /tmp/book/10-git-internals/sections/maintenance.asc.tmp ../../git/progit2/progit2/book/10-git-internals/sections/maintenance.asc |
17608 | ---- /tmp/book/10-git-internals/sections/maintenance.asc.tmp 2020-10-25 13:21:07.164954610 +0900 | |
17648 | +--- /tmp/book/10-git-internals/sections/maintenance.asc.tmp 2020-10-25 20:17:55.498372861 +0900 | |
17609 | 17649 | +++ ../../git/progit2/progit2/book/10-git-internals/sections/maintenance.asc 2020-06-28 16:44:50.948018739 +0900 |
17610 | 17650 | @@ -3,6 +3,7 @@ |
17611 | 17651 | Occasionally, you may have to do some cleanup – make a repository more compact, clean up an imported repository, or recover lost work. |
@@ -17944,7 +17984,7 @@ diff -au /tmp/book/10-git-internals/sections/maintenance.asc.tmp ../../git/progi | ||
17944 | 17984 | +size-garbage: 0 |
17945 | 17985 | +---- |
17946 | 17986 | diff -au /tmp/book/10-git-internals/sections/objects.asc.tmp ../../git/progit2/progit2/book/10-git-internals/sections/objects.asc |
17947 | ---- /tmp/book/10-git-internals/sections/objects.asc.tmp 2020-10-25 13:21:07.175955196 +0900 | |
17987 | +--- /tmp/book/10-git-internals/sections/objects.asc.tmp 2020-10-25 20:17:55.549373576 +0900 | |
17948 | 17988 | +++ ../../git/progit2/progit2/book/10-git-internals/sections/objects.asc 2020-07-04 16:36:46.743685694 +0900 |
17949 | 17989 | @@ -1,159 +1,438 @@ |
17950 | 17990 | -[[r_objects]] |
@@ -18431,7 +18471,7 @@ diff -au /tmp/book/10-git-internals/sections/objects.asc.tmp ../../git/progit2/p | ||
18431 | 18471 | All Git objects are stored the same way, just with different types – instead of the string blob, the header will begin with commit or tree. |
18432 | 18472 | Also, although the blob content can be nearly anything, the commit and tree content are very specifically formatted. |
18433 | 18473 | diff -au /tmp/book/10-git-internals/sections/packfiles.asc.tmp ../../git/progit2/progit2/book/10-git-internals/sections/packfiles.asc |
18434 | ---- /tmp/book/10-git-internals/sections/packfiles.asc.tmp 2020-10-25 13:21:07.184955674 +0900 | |
18474 | +--- /tmp/book/10-git-internals/sections/packfiles.asc.tmp 2020-10-25 20:17:55.609374419 +0900 | |
18435 | 18475 | +++ ../../git/progit2/progit2/book/10-git-internals/sections/packfiles.asc 2020-06-28 16:44:50.948018739 +0900 |
18436 | 18476 | @@ -1,25 +1,87 @@ |
18437 | 18477 | === Packfiles |
@@ -18616,7 +18656,7 @@ diff -au /tmp/book/10-git-internals/sections/packfiles.asc.tmp ../../git/progit2 | ||
18616 | 18656 | The really nice thing about this is that it can be repacked at any time. |
18617 | 18657 | Git will occasionally repack your database automatically, always trying to save more space, but you can also manually repack at any time by running `git gc` by hand. |
18618 | 18658 | diff -au /tmp/book/10-git-internals/sections/plumbing-porcelain.asc.tmp ../../git/progit2/progit2/book/10-git-internals/sections/plumbing-porcelain.asc |
18619 | ---- /tmp/book/10-git-internals/sections/plumbing-porcelain.asc.tmp 2020-10-25 13:21:07.193956153 +0900 | |
18659 | +--- /tmp/book/10-git-internals/sections/plumbing-porcelain.asc.tmp 2020-10-25 20:17:55.673375319 +0900 | |
18620 | 18660 | +++ ../../git/progit2/progit2/book/10-git-internals/sections/plumbing-porcelain.asc 2020-06-28 16:44:50.950019034 +0900 |
18621 | 18661 | @@ -1,25 +1,37 @@ |
18622 | 18662 | -[[r_plumbing_porcelain]] |
@@ -18669,7 +18709,7 @@ diff -au /tmp/book/10-git-internals/sections/plumbing-porcelain.asc.tmp ../../gi | ||
18669 | 18709 | +The `objects` directory stores all the content for your database, the `refs` directory stores pointers into commit objects in that data (branches, tags, remotes and more), the `HEAD` file points to the branch you currently have checked out, and the `index` file is where Git stores your staging area information. |
18670 | 18710 | You'll now look at each of these sections in detail to see how Git operates. |
18671 | 18711 | diff -au /tmp/book/10-git-internals/sections/refs.asc.tmp ../../git/progit2/progit2/book/10-git-internals/sections/refs.asc |
18672 | ---- /tmp/book/10-git-internals/sections/refs.asc.tmp 2020-10-25 13:21:07.201956579 +0900 | |
18712 | +--- /tmp/book/10-git-internals/sections/refs.asc.tmp 2020-10-25 20:17:55.721375990 +0900 | |
18673 | 18713 | +++ ../../git/progit2/progit2/book/10-git-internals/sections/refs.asc 2020-07-04 16:36:46.743685694 +0900 |
18674 | 18714 | @@ -1,78 +1,182 @@ |
18675 | 18715 | -[[r_git_refs]] |
@@ -18906,7 +18946,7 @@ diff -au /tmp/book/10-git-internals/sections/refs.asc.tmp ../../git/progit2/prog | ||
18906 | 18946 | You can `git checkout` to one, but Git won't point HEAD at one, so you'll never update it with a `commit` command. |
18907 | 18947 | Git manages them as bookmarks to the last known state of where those branches were on those servers. |
18908 | 18948 | diff -au /tmp/book/10-git-internals/sections/refspec.asc.tmp ../../git/progit2/progit2/book/10-git-internals/sections/refspec.asc |
18909 | ---- /tmp/book/10-git-internals/sections/refspec.asc.tmp 2020-10-25 13:21:07.208956951 +0900 | |
18949 | +--- /tmp/book/10-git-internals/sections/refspec.asc.tmp 2020-10-25 20:17:55.762376565 +0900 | |
18910 | 18950 | +++ ../../git/progit2/progit2/book/10-git-internals/sections/refspec.asc 2020-07-04 16:36:46.743685694 +0900 |
18911 | 18951 | @@ -1,56 +1,145 @@ |
18912 | 18952 | -[[r_refspec]] |
@@ -19071,7 +19111,7 @@ diff -au /tmp/book/10-git-internals/sections/refspec.asc.tmp ../../git/progit2/p | ||
19071 | 19111 | +$ git push origin --delete topic |
19072 | 19112 | +---- |
19073 | 19113 | diff -au /tmp/book/10-git-internals/sections/transfer-protocols.asc.tmp ../../git/progit2/progit2/book/10-git-internals/sections/transfer-protocols.asc |
19074 | ---- /tmp/book/10-git-internals/sections/transfer-protocols.asc.tmp 2020-10-25 13:21:07.217957430 +0900 | |
19114 | +--- /tmp/book/10-git-internals/sections/transfer-protocols.asc.tmp 2020-10-25 20:17:55.813377280 +0900 | |
19075 | 19115 | +++ ../../git/progit2/progit2/book/10-git-internals/sections/transfer-protocols.asc 2020-06-28 16:44:50.950019034 +0900 |
19076 | 19116 | @@ -8,58 +8,117 @@ |
19077 | 19117 | If you're setting up a repository to be served read-only over HTTP, the dumb protocol is likely what will be used. |
@@ -19353,7 +19393,7 @@ diff -au /tmp/book/10-git-internals/sections/transfer-protocols.asc.tmp ../../gi | ||
19353 | 19393 | The response to this request indicates success or failure, and includes the packfile. |
19354 | 19394 | |
19355 | 19395 | diff -au /tmp/book/A-git-in-other-environments/sections/bash.asc.tmp ../../git/progit2/progit2/book/A-git-in-other-environments/sections/bash.asc |
19356 | ---- /tmp/book/A-git-in-other-environments/sections/bash.asc.tmp 2020-10-25 13:21:07.228958015 +0900 | |
19396 | +--- /tmp/book/A-git-in-other-environments/sections/bash.asc.tmp 2020-10-25 20:17:55.891378377 +0900 | |
19357 | 19397 | +++ ../../git/progit2/progit2/book/A-git-in-other-environments/sections/bash.asc 2020-07-04 16:36:46.743685694 +0900 |
19358 | 19398 | @@ -1,12 +1,23 @@ |
19359 | 19399 | === Git in Bash |
@@ -19401,7 +19441,7 @@ diff -au /tmp/book/A-git-in-other-environments/sections/bash.asc.tmp ../../git/p | ||
19401 | 19441 | |
19402 | 19442 | Both of these scripts come with helpful documentation; take a look at the contents of `git-completion.bash` and `git-prompt.sh` for more information. |
19403 | 19443 | diff -au /tmp/book/A-git-in-other-environments/sections/guis.asc.tmp ../../git/progit2/progit2/book/A-git-in-other-environments/sections/guis.asc |
19404 | ---- /tmp/book/A-git-in-other-environments/sections/guis.asc.tmp 2020-10-25 13:21:07.236958440 +0900 | |
19444 | +--- /tmp/book/A-git-in-other-environments/sections/guis.asc.tmp 2020-10-25 20:17:55.939379048 +0900 | |
19405 | 19445 | +++ ../../git/progit2/progit2/book/A-git-in-other-environments/sections/guis.asc 2020-07-04 16:36:46.743685694 +0900 |
19406 | 19446 | @@ -1,5 +1,6 @@ |
19407 | 19447 | === Graphical Interfaces |
@@ -19546,7 +19586,7 @@ diff -au /tmp/book/A-git-in-other-environments/sections/guis.asc.tmp ../../git/p | ||
19546 | 19586 | A more comprehensive list is available on the Git wiki site, at https://git.wiki.kernel.org/index.php/Interfaces,_frontends,_and_tools#Graphical_Interfaces[]. |
19547 | 19587 | Warning: file not found: ../../git/progit2/progit2-ja/book/A-git-in-other-environments/sections/jetbrainsides.asc |
19548 | 19588 | diff -au /tmp/book/A-git-in-other-environments/sections/powershell.asc.tmp ../../git/progit2/progit2/book/A-git-in-other-environments/sections/powershell.asc |
19549 | ---- /tmp/book/A-git-in-other-environments/sections/powershell.asc.tmp 2020-10-25 13:21:07.246958972 +0900 | |
19589 | +--- /tmp/book/A-git-in-other-environments/sections/powershell.asc.tmp 2020-10-25 20:17:55.990379766 +0900 | |
19550 | 19590 | +++ ../../git/progit2/progit2/book/A-git-in-other-environments/sections/powershell.asc 2020-07-04 16:36:46.743685694 +0900 |
19551 | 19591 | @@ -1,16 +1,86 @@ |
19552 | 19592 | -[[r_git_powershell]] |
@@ -19647,7 +19687,7 @@ diff -au /tmp/book/A-git-in-other-environments/sections/powershell.asc.tmp ../.. | ||
19647 | 19687 | +For more details on how to customize your posh-git prompt see: https://github.com/dahlbyk/posh-git/blob/master/README.md#customization-variables[]. |
19648 | 19688 | Warning: file not found: ../../git/progit2/progit2-ja/book/A-git-in-other-environments/sections/sublimetext.asc |
19649 | 19689 | diff -au /tmp/book/A-git-in-other-environments/sections/visualstudio.asc.tmp ../../git/progit2/progit2/book/A-git-in-other-environments/sections/visualstudio.asc |
19650 | ---- /tmp/book/A-git-in-other-environments/sections/visualstudio.asc.tmp 2020-10-25 13:21:07.254959398 +0900 | |
19690 | +--- /tmp/book/A-git-in-other-environments/sections/visualstudio.asc.tmp 2020-10-25 20:17:56.018380158 +0900 | |
19651 | 19691 | +++ ../../git/progit2/progit2/book/A-git-in-other-environments/sections/visualstudio.asc 2020-07-13 09:35:20.947908596 +0900 |
19652 | 19692 | @@ -1,5 +1,6 @@ |
19653 | 19693 | === Git in Visual Studio |
@@ -19684,7 +19724,7 @@ diff -au /tmp/book/A-git-in-other-environments/sections/visualstudio.asc.tmp ../ | ||
19684 | 19724 | +For more on using Git within Visual Studio go to: https://docs.microsoft.com/en-us/azure/devops/repos/git/command-prompt?view=azure-devops[]. |
19685 | 19725 | Warning: file not found: ../../git/progit2/progit2-ja/book/A-git-in-other-environments/sections/visualstudiocode.asc |
19686 | 19726 | diff -au /tmp/book/A-git-in-other-environments/sections/zsh.asc.tmp ../../git/progit2/progit2/book/A-git-in-other-environments/sections/zsh.asc |
19687 | ---- /tmp/book/A-git-in-other-environments/sections/zsh.asc.tmp 2020-10-25 13:21:07.263959876 +0900 | |
19727 | +--- /tmp/book/A-git-in-other-environments/sections/zsh.asc.tmp 2020-10-25 20:17:56.061380765 +0900 | |
19688 | 19728 | +++ ../../git/progit2/progit2/book/A-git-in-other-environments/sections/zsh.asc 2020-07-04 16:36:46.743685694 +0900 |
19689 | 19729 | @@ -1,34 +1,55 @@ |
19690 | 19730 | === Git in Zsh |
@@ -19757,7 +19797,7 @@ diff -au /tmp/book/B-embedding-git/sections/command-line.asc.tmp ../../git/progi | ||
19757 | 19797 | Warning: file not found: ../../git/progit2/progit2-ja/book/B-embedding-git/sections/dulwich.asc |
19758 | 19798 | Warning: file not found: ../../git/progit2/progit2-ja/book/B-embedding-git/sections/go-git.asc |
19759 | 19799 | diff -au /tmp/book/B-embedding-git/sections/jgit.asc.tmp ../../git/progit2/progit2/book/B-embedding-git/sections/jgit.asc |
19760 | ---- /tmp/book/B-embedding-git/sections/jgit.asc.tmp 2020-10-25 13:21:07.280960781 +0900 | |
19800 | +--- /tmp/book/B-embedding-git/sections/jgit.asc.tmp 2020-10-25 20:17:56.213382906 +0900 | |
19761 | 19801 | +++ ../../git/progit2/progit2/book/B-embedding-git/sections/jgit.asc 2020-06-28 16:44:50.955019770 +0900 |
19762 | 19802 | @@ -1,21 +1,36 @@ |
19763 | 19803 | === JGit |
@@ -19873,7 +19913,7 @@ diff -au /tmp/book/B-embedding-git/sections/jgit.asc.tmp ../../git/progit2/progi | ||
19873 | 19913 | * The JGit Cookbook at https://github.com/centic9/jgit-cookbook[] has many examples of how to do specific tasks with JGit. |
19874 | 19914 | -* There are several good resources pointed out at http://stackoverflow.com/questions/6861881[]. |
19875 | 19915 | diff -au /tmp/book/B-embedding-git/sections/libgit2.asc.tmp ../../git/progit2/progit2/book/B-embedding-git/sections/libgit2.asc |
19876 | ---- /tmp/book/B-embedding-git/sections/libgit2.asc.tmp 2020-10-25 13:21:07.291961366 +0900 | |
19916 | +--- /tmp/book/B-embedding-git/sections/libgit2.asc.tmp 2020-10-25 20:17:56.269383696 +0900 | |
19877 | 19917 | +++ ../../git/progit2/progit2/book/B-embedding-git/sections/libgit2.asc 2020-07-01 10:48:37.625009675 +0900 |
19878 | 19918 | @@ -1,13 +1,15 @@ |
19879 | 19919 | === Libgit2 |
@@ -20081,7 +20121,7 @@ diff -au /tmp/book/B-embedding-git/sections/libgit2.asc.tmp ../../git/progit2/pr | ||
20081 | 20121 | pygit2.Repository("/path/to/repo") # open repository |
20082 | 20122 | .head # get the current branch |
20083 | 20123 | diff -au /tmp/book/contributors.asc.tmp ../../git/progit2/progit2/book/contributors.asc |
20084 | ---- /tmp/book/contributors.asc.tmp 2020-10-25 13:21:07.299961791 +0900 | |
20124 | +--- /tmp/book/contributors.asc.tmp 2020-10-25 20:17:56.322384440 +0900 | |
20085 | 20125 | +++ ../../git/progit2/progit2/book/contributors.asc 2020-06-28 16:44:50.955019770 +0900 |
20086 | 20126 | @@ -1,4 +1,12 @@ |
20087 | 20127 | [preface] |
@@ -20098,7 +20138,7 @@ diff -au /tmp/book/contributors.asc.tmp ../../git/progit2/progit2/book/contribut | ||
20098 | 20138 | +---- |
20099 | 20139 | + |
20100 | 20140 | diff -au /tmp/book/dedication.asc.tmp ../../git/progit2/progit2/book/dedication.asc |
20101 | ---- /tmp/book/dedication.asc.tmp 2020-10-25 13:21:07.307962217 +0900 | |
20141 | +--- /tmp/book/dedication.asc.tmp 2020-10-25 20:17:56.345384765 +0900 | |
20102 | 20142 | +++ ../../git/progit2/progit2/book/dedication.asc 2020-06-28 16:44:50.960020506 +0900 |
20103 | 20143 | @@ -1,8 +1,8 @@ |
20104 | 20144 | -[preface] |
@@ -20113,12 +20153,8 @@ diff -au /tmp/book/dedication.asc.tmp ../../git/progit2/progit2/book/dedication. | ||
20113 | 20153 | +To my wife Jessica who has supported me for all of these years and to my daughter Josephine, |
20114 | 20154 | who will support me when I'm too old to know what's going on. — Scott_ |
20115 | 20155 | diff -au /tmp/book/index.asc.tmp ../../git/progit2/progit2/book/index.asc |
20116 | ---- /tmp/book/index.asc.tmp 2020-10-25 13:21:07.317962749 +0900 | |
20117 | -+++ ../../git/progit2/progit2/book/index.asc 2020-06-28 16:44:50.960020506 +0900 | |
20118 | -@@ -0,0 +1 @@ | |
20119 | -+== Index | |
20120 | 20156 | diff -au /tmp/book/introduction.asc.tmp ../../git/progit2/progit2/book/introduction.asc |
20121 | ---- /tmp/book/introduction.asc.tmp 2020-10-25 13:21:07.326963228 +0900 | |
20157 | +--- /tmp/book/introduction.asc.tmp 2020-10-25 20:17:56.420385824 +0900 | |
20122 | 20158 | +++ ../../git/progit2/progit2/book/introduction.asc 2020-06-28 16:44:50.960020506 +0900 |
20123 | 20159 | @@ -1,69 +1,58 @@ |
20124 | 20160 | [preface] |
@@ -20243,15 +20279,16 @@ diff -au /tmp/book/introduction.asc.tmp ../../git/progit2/progit2/book/introduct | ||
20243 | 20279 | -Let’s get started. |
20244 | 20280 | +Let's get started. |
20245 | 20281 | diff -au /tmp/book/license.asc.tmp ../../git/progit2/progit2/book/license.asc |
20246 | ---- /tmp/book/license.asc.tmp 2020-10-25 13:21:07.334963653 +0900 | |
20282 | +--- /tmp/book/license.asc.tmp 2020-10-25 20:17:56.444386161 +0900 | |
20247 | 20283 | +++ ../../git/progit2/progit2/book/license.asc 2020-06-28 16:44:50.961020654 +0900 |
20248 | -@@ -0,0 +1,4 @@ | |
20249 | -+[preface] | |
20284 | +@@ -1,4 +1,4 @@ | |
20285 | + [preface] | |
20286 | +-== ライセンス | |
20250 | 20287 | +== Licence |
20251 | -+ | |
20252 | -+include::../LICENSE.asc[] | |
20288 | + | |
20289 | + include::../LICENSE.asc[] | |
20253 | 20290 | diff -au /tmp/book/preface_ben.asc.tmp ../../git/progit2/progit2/book/preface_ben.asc |
20254 | ---- /tmp/book/preface_ben.asc.tmp 2020-10-25 13:21:07.341964025 +0900 | |
20291 | +--- /tmp/book/preface_ben.asc.tmp 2020-10-25 20:17:56.461386401 +0900 | |
20255 | 20292 | +++ ../../git/progit2/progit2/book/preface_ben.asc 2020-06-28 16:44:50.961020654 +0900 |
20256 | 20293 | @@ -1,8 +1,12 @@ |
20257 | 20294 | [preface] |
@@ -20271,14 +20308,10 @@ diff -au /tmp/book/preface_ben.asc.tmp ../../git/progit2/progit2/book/preface_be | ||
20271 | 20308 | +I hope it helps you as much as it did me. |
20272 | 20309 | Warning: file not found: ../../git/progit2/progit2-ja/book/preface_schacon.asc |
20273 | 20310 | diff -au /tmp/book/toc.asc.tmp ../../git/progit2/progit2/book/toc.asc |
20274 | ---- /tmp/book/toc.asc.tmp 2020-10-25 13:21:07.348964398 +0900 | |
20275 | -+++ ../../git/progit2/progit2/book/toc.asc 2020-06-28 16:44:50.961020654 +0900 | |
20276 | -@@ -0,0 +1 @@ | |
20277 | -+{{ toc }} | |
20278 | 20311 | Warning: file not found: ../../git/progit2/progit2-ja/ch01-getting-started.asc |
20279 | 20312 | Warning: file not found: ../../git/progit2/progit2-ja/ch02-git-basics-chapter.asc |
20280 | 20313 | diff -au /tmp/ch03-git-branching.asc.tmp ../../git/progit2/progit2/ch03-git-branching.asc |
20281 | ---- /tmp/ch03-git-branching.asc.tmp 2020-10-25 13:21:07.357964876 +0900 | |
20314 | +--- /tmp/ch03-git-branching.asc.tmp 2020-10-25 20:17:56.482386697 +0900 | |
20282 | 20315 | +++ ../../git/progit2/progit2/ch03-git-branching.asc 2020-06-28 16:44:50.963020948 +0900 |
20283 | 20316 | @@ -1,7 +1,7 @@ |
20284 | 20317 | -[#ch03-git-branching] |
@@ -20292,7 +20325,7 @@ diff -au /tmp/ch03-git-branching.asc.tmp ../../git/progit2/progit2/ch03-git-bran | ||
20292 | 20325 | In many VCS tools, this is a somewhat expensive process, often requiring you to create a new copy of your source code directory, which can take a long time for large projects. |
20293 | 20326 | Warning: file not found: ../../git/progit2/progit2-ja/ch04-git-on-the-server.asc |
20294 | 20327 | diff -au /tmp/ch05-distributed-git.asc.tmp ../../git/progit2/progit2/ch05-distributed-git.asc |
20295 | ---- /tmp/ch05-distributed-git.asc.tmp 2020-10-25 13:21:07.364965249 +0900 | |
20328 | +--- /tmp/ch05-distributed-git.asc.tmp 2020-10-25 20:17:56.497386909 +0900 | |
20296 | 20329 | +++ ../../git/progit2/progit2/ch05-distributed-git.asc 2020-06-28 16:44:50.963020948 +0900 |
20297 | 20330 | @@ -1,8 +1,8 @@ |
20298 | 20331 | -[#ch05-distributed-git] |
@@ -20307,7 +20340,7 @@ diff -au /tmp/ch05-distributed-git.asc.tmp ../../git/progit2/progit2/ch05-distri | ||
20307 | 20340 | In this chapter, you'll see how to work with Git in a distributed environment as a contributor and an integrator. |
20308 | 20341 | That is, you'll learn how to contribute code successfully to a project and make it as easy on you and the project maintainer as possible, and also how to maintain a project successfully with a number of developers contributing. |
20309 | 20342 | diff -au /tmp/ch06-github.asc.tmp ../../git/progit2/progit2/ch06-github.asc |
20310 | ---- /tmp/ch06-github.asc.tmp 2020-10-25 13:21:07.374965781 +0900 | |
20343 | +--- /tmp/ch06-github.asc.tmp 2020-10-25 20:17:56.513387134 +0900 | |
20311 | 20344 | +++ ../../git/progit2/progit2/ch06-github.asc 2020-06-28 16:44:50.963020948 +0900 |
20312 | 20345 | @@ -1,5 +1,4 @@ |
20313 | 20346 | -[#ch06-github] |
@@ -20333,7 +20366,7 @@ diff -au /tmp/ch06-github.asc.tmp ../../git/progit2/progit2/ch06-github.asc | ||
20333 | 20366 | |
20334 | 20367 | include::book/06-github/sections/2-contributing.asc[] |
20335 | 20368 | diff -au /tmp/ch07-git-tools.asc.tmp ../../git/progit2/progit2/ch07-git-tools.asc |
20336 | ---- /tmp/ch07-git-tools.asc.tmp 2020-10-25 13:21:07.380966100 +0900 | |
20369 | +--- /tmp/ch07-git-tools.asc.tmp 2020-10-25 20:17:56.526387317 +0900 | |
20337 | 20370 | +++ ../../git/progit2/progit2/ch07-git-tools.asc 2020-06-28 16:44:50.963020948 +0900 |
20338 | 20371 | @@ -1,11 +1,10 @@ |
20339 | 20372 | -[#ch07-git-tools] |
@@ -20363,7 +20396,7 @@ diff -au /tmp/ch07-git-tools.asc.tmp ../../git/progit2/progit2/ch07-git-tools.as | ||
20363 | 20396 | +If you want to use subprojects in your project, you've learned how to accommodate those needs. |
20364 | 20397 | +At this point, you should be able to do most of the things in Git that you'll need on the command line day to day and feel comfortable doing so. |
20365 | 20398 | diff -au /tmp/ch08-customizing-git.asc.tmp ../../git/progit2/progit2/ch08-customizing-git.asc |
20366 | ---- /tmp/ch08-customizing-git.asc.tmp 2020-10-25 13:21:07.390966632 +0900 | |
20399 | +--- /tmp/ch08-customizing-git.asc.tmp 2020-10-25 20:17:56.537387472 +0900 | |
20367 | 20400 | +++ ../../git/progit2/progit2/ch08-customizing-git.asc 2020-06-28 16:44:50.964021095 +0900 |
20368 | 20401 | @@ -1,5 +1,4 @@ |
20369 | 20402 | -[#ch08-customizing-git] |
@@ -20374,7 +20407,7 @@ diff -au /tmp/ch08-customizing-git.asc.tmp ../../git/progit2/progit2/ch08-custom | ||
20374 | 20407 | So far, we've covered the basics of how Git works and how to use it, and we've introduced a number of tools that Git provides to help you use it easily and efficiently. |
20375 | 20408 | Warning: file not found: ../../git/progit2/progit2-ja/ch09-git-and-other-systems.asc |
20376 | 20409 | diff -au /tmp/ch10-git-internals.asc.tmp ../../git/progit2/progit2/ch10-git-internals.asc |
20377 | ---- /tmp/ch10-git-internals.asc.tmp 2020-10-25 13:21:07.396966951 +0900 | |
20410 | +--- /tmp/ch10-git-internals.asc.tmp 2020-10-25 20:17:56.545387585 +0900 | |
20378 | 20411 | +++ ../../git/progit2/progit2/ch10-git-internals.asc 2020-06-28 16:44:50.964021095 +0900 |
20379 | 20412 | @@ -1,9 +1,8 @@ |
20380 | 20413 | -[#ch10-git-internals] |
@@ -20412,65 +20445,64 @@ diff -au /tmp/ch10-git-internals.asc.tmp ../../git/progit2/progit2/ch10-git-inte | ||
20412 | 20445 | Git as a content-addressable filesystem is a very powerful tool that you can easily use as more than just a VCS. |
20413 | 20446 | We hope you can use your newfound knowledge of Git internals to implement your own cool application of this technology and feel more comfortable using Git in more advanced ways. |
20414 | 20447 | diff -au /tmp/index.asc.tmp ../../git/progit2/progit2/index.asc |
20415 | ---- /tmp/index.asc.tmp 2020-10-25 13:21:07.403967323 +0900 | |
20416 | -+++ ../../git/progit2/progit2/index.asc 2020-06-28 16:44:51.438090759 +0900 | |
20417 | -@@ -0,0 +1,3 @@ | |
20418 | -+[#index] | |
20419 | -+[index] | |
20420 | -+= Index | |
20421 | 20448 | diff -au /tmp/progit.asc.tmp ../../git/progit2/progit2/progit.asc |
20422 | ---- /tmp/progit.asc.tmp 2020-10-25 13:21:07.411967749 +0900 | |
20449 | +--- /tmp/progit.asc.tmp 2020-10-25 20:17:56.639388909 +0900 | |
20423 | 20450 | +++ ../../git/progit2/progit2/progit.asc 2020-06-28 16:44:51.438090759 +0900 |
20424 | -@@ -0,0 +1,52 @@ | |
20425 | -+Pro Git | |
20426 | -+======= | |
20451 | +@@ -1,34 +1,35 @@ | |
20452 | + Pro Git | |
20453 | + ======= | |
20427 | 20454 | +Scott Chacon; Ben Straub |
20428 | -+:doctype: book | |
20429 | -+:docinfo: | |
20430 | -+:toc: | |
20431 | -+:toclevels: 2 | |
20432 | -+:pagenums: | |
20433 | -+:front-cover-image: image:book/cover.png[width=1050,height=1600] | |
20455 | + :doctype: book | |
20456 | + :docinfo: | |
20457 | + :toc: | |
20458 | + :toclevels: 2 | |
20459 | + :pagenums: | |
20460 | + :front-cover-image: image:book/cover.png[width=1050,height=1600] | |
20461 | +-:toc-title: 目次 | |
20434 | 20462 | +:icons: font |
20435 | -+ | |
20436 | -+ifdef::ebook-format[:leveloffset: -1] | |
20437 | -+ | |
20438 | -+include::book/license.asc[] | |
20439 | -+ | |
20463 | + | |
20464 | + ifdef::ebook-format[:leveloffset: -1] | |
20465 | + | |
20466 | + include::book/license.asc[] | |
20467 | + | |
20468 | +-include::book/preface_scott.asc[] | |
20440 | 20469 | +include::book/preface_schacon.asc[] |
20441 | -+ | |
20442 | -+include::book/preface_ben.asc[] | |
20443 | -+ | |
20444 | -+include::book/dedication.asc[] | |
20445 | -+ | |
20470 | + | |
20471 | + include::book/preface_ben.asc[] | |
20472 | + | |
20473 | + include::book/dedication.asc[] | |
20474 | + | |
20475 | +-//include::book/contributors.asc[] | |
20446 | 20476 | +include::book/contributors.asc[] |
20447 | -+ | |
20448 | -+include::book/introduction.asc[] | |
20449 | -+ | |
20477 | + | |
20478 | + include::book/introduction.asc[] | |
20479 | + | |
20480 | +-include::ch01-introduction.asc[] | |
20450 | 20481 | +include::ch01-getting-started.asc[] |
20451 | -+ | |
20482 | + | |
20483 | +-include::ch02-git-basics.asc[] | |
20452 | 20484 | +include::ch02-git-basics-chapter.asc[] |
20453 | -+ | |
20454 | -+include::ch03-git-branching.asc[] | |
20455 | -+ | |
20485 | + | |
20486 | + include::ch03-git-branching.asc[] | |
20487 | + | |
20488 | +-include::ch04-git-server.asc[] | |
20456 | 20489 | +include::ch04-git-on-the-server.asc[] |
20457 | -+ | |
20458 | -+include::ch05-distributed-git.asc[] | |
20459 | -+ | |
20460 | -+include::ch06-github.asc[] | |
20461 | -+ | |
20462 | -+include::ch07-git-tools.asc[] | |
20463 | -+ | |
20464 | -+include::ch08-customizing-git.asc[] | |
20465 | -+ | |
20490 | + | |
20491 | + include::ch05-distributed-git.asc[] | |
20492 | + | |
20493 | +@@ -38,13 +39,13 @@ | |
20494 | + | |
20495 | + include::ch08-customizing-git.asc[] | |
20496 | + | |
20497 | +-include::ch09-git-and-other-scms.asc[] | |
20466 | 20498 | +include::ch09-git-and-other-systems.asc[] |
20467 | -+ | |
20468 | -+include::ch10-git-internals.asc[] | |
20469 | -+ | |
20470 | -+include::A-git-in-other-environments.asc[] | |
20471 | -+ | |
20499 | + | |
20500 | + include::ch10-git-internals.asc[] | |
20501 | + | |
20502 | + include::A-git-in-other-environments.asc[] | |
20503 | + | |
20504 | +-include::B-embedding-git.asc[] | |
20472 | 20505 | +include::B-embedding-git-in-your-applications.asc[] |
20473 | -+ | |
20474 | -+include::C-git-commands.asc[] | |
20475 | -+ | |
20476 | -+ifndef::ebook-format[include::index.asc[]] | |
20506 | + | |
20507 | + include::C-git-commands.asc[] | |
20508 | + |
@@ -5,13 +5,13 @@ | ||
5 | 5 | ### 利用方法 |
6 | 6 | ### ./progit2ja_diff.perl <origdir> <jadir> [<target>] |
7 | 7 | ### |
8 | -### <origdir>: progit2 オリジナルのソーストップディレクトリ名 | |
9 | -### <jadir>: progit/progit2-ja のソーストップディレクトリ名 | |
8 | +### <origdir>: progit2 オリジナルのソーストップディレクトリパス | |
9 | +### <jadir>: progit/progit2-ja のソーストップディレクトリパス | |
10 | 10 | ### <target>: (任意)処理対象とするascファイルのベース名。 |
11 | 11 | ### この指定がない場合は全ファイルを対象とする。 |
12 | 12 | ### |
13 | 13 | ### progit/progit2-ja のソース内にコメントとして示された原文部分を |
14 | -### progit オリジナル全ソースと比較して、diff を取り標準出力します。 | |
14 | +### progit オリジナルソースと比較して diff を取り、標準出力します。 | |
15 | 15 | ### |
16 | 16 | ### 処理方法はざっと以下です。<origdir> 配下の *.asc ファイルを順に |
17 | 17 | ### 処理します。そのベース名に応じた <jadir> 配下の *.asc ファイル |
@@ -128,6 +128,9 @@ sub output_ja_tempfile { | ||
128 | 128 | $lines = $lines . $line; |
129 | 129 | } |
130 | 130 | } |
131 | + if ($lines ne "") { | |
132 | + &output_tempfile; | |
133 | + } | |
131 | 134 | close($fh_jasrc); |
132 | 135 | close($fh_tempfile); |
133 | 136 | } |