1STG-REFRESH(1)                   StGit Manual                   STG-REFRESH(1)
2
3
4

NAME

6       stg-refresh - Generate a new commit for the current patch
7

SYNOPSIS

9       stg refresh [options] [--] [<files or dirs>]
10

DESCRIPTION

12       Include the latest work tree and index changes in the current patch.
13       This command generates a new git commit object for the patch; the old
14       commit is no longer visible.
15
16       Refresh will warn if the index is dirty, and require use of either the
17       --index or --force options to override this check. This is to prevent
18       accidental full refresh when only some changes were staged using git
19       add interative mode.
20
21       You may optionally list one or more files or directories relative to
22       the current working directory; if you do, only matching files will be
23       updated.
24
25       Behind the scenes, stg refresh first creates a new temporary patch with
26       your updates, and then merges that patch into the patch you asked to
27       have refreshed. If you asked to refresh a patch other than the topmost
28       patch, there can be conflicts; in that case, the temporary patch will
29       be left for you to take care of, for example with stg squash.
30
31       The creation of the temporary patch is recorded in a separate entry in
32       the patch stack log; this means that one undo step will undo the merge
33       between the other patch and the temp patch, and two undo steps will
34       additionally get rid of the temp patch.
35

OPTIONS

37       -u, --update
38           Only update the current patch files.
39
40       -i, --index
41           Instead of setting the patch top to the current contents of the
42           worktree, set it to the current contents of the index.
43
44       -F, --force
45           Instead of warning the user when some work has already been staged
46           (such as with git add interactive mode) force a full refresh.
47
48       -p PATCH, --patch PATCH
49           Refresh (applied) PATCH instead of the top patch.
50
51       -e, --edit
52           Invoke an editor for the patch description.
53
54       -a NOTE, --annotate NOTE
55           Annotate the patch log entry.
56
57       -m MESSAGE, --message MESSAGE
58           Use MESSAGE instead of invoking the editor.
59
60       -f FILE, --file FILE
61           Use the contents of FILE instead of invoking the editor. (If FILE
62           is "-", write to stdout.)
63
64       --no-verify
65           This option bypasses the commit-msg hook.
66
67       --sign
68           Add a "Signed-off-by:" to the end of the patch.
69
70       --ack
71           Add an "Acked-by:" line to the end of the patch.
72
73       --review
74           Add a "Reviewed-by:" line to the end of the patch.
75
76       --author "NAME <EMAIL>"
77           Set the author details.
78
79       --authname NAME
80           Set the author name.
81
82       --authemail EMAIL
83           Set the author email.
84
85       --authdate DATE
86           Set the author date.
87

STGIT

89       Part of the StGit suite - see stg(1)
90
91
92
93
94StGit                             07/17/2018                    STG-REFRESH(1)
Impressum