git-freeze.1 4.09 KB
Newer Older
1 2 3 4
'\" t
.\"     Title: git-freeze
.\"    Author: [FIXME: author] [see http://docbook.sf.net/el/author]
.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
5
.\"      Date: 12/15/2016
6
.\"    Manual: Chromium depot_tools Manual
7
.\"    Source: depot_tools f72f1ad
8 9
.\"  Language: English
.\"
10
.TH "GIT\-FREEZE" "1" "12/15/2016" "depot_tools f72f1ad" "Chromium depot_tools Manual"
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.\" http://bugs.debian.org/507673
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n(.g .ds Aq \(aq
.el       .ds Aq '
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
.SH "NAME"
31
git-freeze \- Freeze all changes on a branch (indexed and unindexed)\&.
32 33 34 35 36 37 38 39 40 41 42
.SH "SYNOPSIS"
.sp
.nf
\fIgit freeze\fR
.fi
.sp
.SH "DESCRIPTION"
.sp
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)\&.
.sp
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 44
.sp
By default git freeze will only freeze up to 100MB of untracked files\&. See \fICONFIGURATION VARIABLES\fR for more details\&.
45
.SH "EXAMPLE"
46 47
.sp

48 49 50 51 52 53 54
.sp
.if n \{\
.RS 4
.\}
.nf
\fB$ git status \-\-short\fR
A  added_file
55
AM added_file_with_unstaged_changes
56 57 58 59 60 61 62
D  deleted_file
 M modified_file
 D unstaged_deleted_file
?? unadded_file
\fB$ git freeze\fR
\fB$ git status \-\-short\fR
\fB$ git log \-n 2 \-\-stat\fR
63
commit ba39366fbf53c9501a8649a09d82f7823d22ebd8
64 65
Author: local <local@chromium\&.org>
Date:   Thu Apr 10 08:54:56 2014 +0000
66 67 68

    FREEZE\&.unindexed

69 70 71
 added_file_with_unstaged_changes | 1 +
 modified_file                    | 1 +
 unadded_file                     | 0
72
 unstaged_deleted_file            | 1 \-
73
 4 files changed, 2 insertions(+), 1 deletion(\-)
74

75
commit 6071396fbc51599932099e642d49fd66db8abcb4
76 77
Author: local <local@chromium\&.org>
Date:   Thu Apr 10 08:54:56 2014 +0000
78 79 80

    FREEZE\&.indexed

81
 added_file                       | 1 +
82 83
 added_file_with_unstaged_changes | 1 +
 deleted_file                     | 1 \-
84
 3 files changed, 2 insertions(+), 1 deletion(\-)
85 86 87
\fB$ git thaw\fR
\fB$ git status \-\-short\fR
A  added_file
88
AM added_file_with_unstaged_changes
89 90 91 92 93 94 95 96 97
D  deleted_file
 M modified_file
 D unstaged_deleted_file
?? unadded_file
.fi
.if n \{\
.RE
.\}
.sp
98 99 100 101
.SH "CONFIGURATION VARIABLES"
.SS "depot\-tools\&.freeze\-size\-limit"
.sp
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\&.
102 103 104 105 106
.SH "SEE ALSO"
.sp
\fBgit-thaw\fR(1)
.SH "CHROMIUM DEPOT_TOOLS"
.sp
107
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\&.
108 109 110 111
.SH "NOTES"
.IP " 1." 4
here
.RS 4
112
\%https://chromium.googlesource.com/chromium/tools/depot_tools.git
113
.RE