git-freeze.1 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. '\" t
  2. .\" Title: git-freeze
  3. .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
  4. .\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/>
  5. .\" Date: 05/03/2019
  6. .\" Manual: Chromium depot_tools Manual
  7. .\" Source: depot_tools e58cce6c
  8. .\" Language: English
  9. .\"
  10. .TH "GIT\-FREEZE" "1" "05/03/2019" "depot_tools e58cce6c" "Chromium depot_tools Manual"
  11. .\" -----------------------------------------------------------------
  12. .\" * Define some portability stuff
  13. .\" -----------------------------------------------------------------
  14. .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  15. .\" http://bugs.debian.org/507673
  16. .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
  17. .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  18. .ie \n(.g .ds Aq \(aq
  19. .el .ds Aq '
  20. .\" -----------------------------------------------------------------
  21. .\" * set default formatting
  22. .\" -----------------------------------------------------------------
  23. .\" disable hyphenation
  24. .nh
  25. .\" disable justification (adjust text to left margin only)
  26. .ad l
  27. .\" -----------------------------------------------------------------
  28. .\" * MAIN CONTENT STARTS HERE *
  29. .\" -----------------------------------------------------------------
  30. .SH "NAME"
  31. git-freeze \- Freeze all changes on a branch (indexed and unindexed)\&.
  32. .SH "SYNOPSIS"
  33. .sp
  34. .nf
  35. \fIgit freeze\fR
  36. .fi
  37. .sp
  38. .SH "DESCRIPTION"
  39. .sp
  40. git freeze works a lot like git stash, in that it stores the current changes in your working copy and index \fIsomewhere\fR\&. Unlike git stash, git freeze stores those changes on your current branch\&. This effectively allows you to \fIpause\fR development of a branch, work on something else, and then come back to exactly the same working state later (by running git thaw)\&.
  41. .sp
  42. git freeze will make up to 2 commits on your branch\&. A commit with the message FREEZE\&.indexed will contain all changes which you\(cqve added to your index (like with \fIgit add\fR, \fIgit mv\fR, \fIgit rm\fR, etc\&.)\&. A commit with the message FREEZE\&.unindexed will contain all changes which were not in your index at the time you ran git freeze (freshly modified files, new files, etc\&.)\&.
  43. .sp
  44. By default git freeze will only freeze up to 100MB of untracked files\&. See \fICONFIGURATION VARIABLES\fR for more details\&.
  45. .SH "EXAMPLE"
  46. .sp
  47. .sp
  48. .if n \{\
  49. .RS 4
  50. .\}
  51. .nf
  52. \fB$ git status \-\-short\fR
  53. A added_file
  54. AM added_file_with_unstaged_changes
  55. D deleted_file
  56. M modified_file
  57. D unstaged_deleted_file
  58. ?? unadded_file
  59. \fB$ git freeze\fR
  60. \fB$ git status \-\-short\fR
  61. \fB$ git log \-n 2 \-\-stat\fR
  62. commit d2b155e804b71d99ce51280d2fb9a56917351680
  63. Author: local <local@chromium\&.org>
  64. Date: Thu Apr 10 08:54:56 2014 +0000
  65. FREEZE\&.unindexed
  66. added_file_with_unstaged_changes | 1 +
  67. modified_file | 1 +
  68. unadded_file | 0
  69. unstaged_deleted_file | 1 \-
  70. 4 files changed, 2 insertions(+), 1 deletion(\-)
  71. commit bc45c733e95a18f2b2f641e31c7792441cb7da21
  72. Author: local <local@chromium\&.org>
  73. Date: Thu Apr 10 08:54:56 2014 +0000
  74. FREEZE\&.indexed
  75. added_file | 1 +
  76. added_file_with_unstaged_changes | 1 +
  77. deleted_file | 1 \-
  78. 3 files changed, 2 insertions(+), 1 deletion(\-)
  79. \fB$ git thaw\fR
  80. \fB$ git status \-\-short\fR
  81. A added_file
  82. AM added_file_with_unstaged_changes
  83. D deleted_file
  84. M modified_file
  85. D unstaged_deleted_file
  86. ?? unadded_file
  87. .fi
  88. .if n \{\
  89. .RE
  90. .\}
  91. .sp
  92. .SH "CONFIGURATION VARIABLES"
  93. .SS "depot\-tools\&.freeze\-size\-limit"
  94. .sp
  95. This sets the size limit as an integer number of megabytes of untracked files that git\-freeze will be willing to put in suspended animation\&. A 0 or negative limit disables the size\-limit check entirely\&. \fB100\fR by default\&.
  96. .SH "SEE ALSO"
  97. .sp
  98. \fBgit-thaw\fR(1)
  99. .SH "CHROMIUM DEPOT_TOOLS"
  100. .sp
  101. Part of the chromium \fBdepot_tools\fR(7) suite\&. These tools are meant to assist with the development of chromium and related projects\&. Download the tools from \m[blue]\fBhere\fR\m[]\&\s-2\u[1]\d\s+2\&.
  102. .SH "NOTES"
  103. .IP " 1." 4
  104. here
  105. .RS 4
  106. \%https://chromium.googlesource.com/chromium/tools/depot_tools.git
  107. .RE