Skip to content

Commit 5818a8b

Browse files
committed
Updates for v2.1.0
1 parent bb8f075 commit 5818a8b

18 files changed

+207
-5
lines changed

content/_index.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,25 @@ StGit is licensed under the GNU General Public License, version 2.
3535

3636
## News
3737

38+
### 2022-12-12: [StGit v2.1.0][v2.1.0] has been released.
39+
40+
This minor release introduces several long-awaited features, including
41+
some potentially breaking changes.
42+
43+
The main breaking feature is relaxed stack initialization. Instead of
44+
needing to explicitly initialize a StGit stack on a branch, patch
45+
creating commands such as `stg new` and `stg import` will automatically
46+
initialize the stack, if needed. Most other commands that previously
47+
required an initialized stack will now operate as if there is an empty
48+
stack if the stack is not yet initialized.
49+
50+
Another potentially breaking change is that the `stgit.gpgsign`
51+
configuration variable is now independent of `commit.gpgsign`. I.e. to
52+
have signed stack metadata commits, `stgit.gpgsign` must be set to
53+
`true`.
54+
55+
See the [changelog](changelog/) for all the details on this release.
56+
3857
### 2022-11-30: [StGit v2.0.4][v2.0.4] has been released.
3958

4059
This release makes some repairs to aliases, including documenting
@@ -114,6 +133,7 @@ Thanks to everyone who submitted a PR or reported an issue!
114133

115134
See the [changelog](changelog/) for all the details on this release.
116135

136+
[v2.1.0]: https://github.com/stacked-git/stgit/releases/tag/v2.1.0
117137
[v2.0.4]: https://github.com/stacked-git/stgit/releases/tag/v2.0.4
118138
[v2.0.3]: https://github.com/stacked-git/stgit/releases/tag/v2.0.3
119139
[v2.0.2]: https://github.com/stacked-git/stgit/releases/tag/v2.0.2

content/changelog/_index.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,30 @@ title = 'StGit Changelog'
44

55
# Changelog
66

7+
## [2.1.0] 2022-12-12
8+
9+
### Added
10+
- feat: Configurable push conflict policy (#60)
11+
- feat: Add --committer-date-is-author-date option (#47)
12+
- feat(import): Add --3way option (#36)
13+
- feat(import): Add --directory option (#36)
14+
15+
### Changed
16+
- feat!: Relaxed stack initialization (#238)
17+
- feat!: Only sign stack based on stgit.gpgsign (#238)
18+
- fix!: Allow "---" separator in messages (#243)
19+
- feat: More descriptive push conflict message (#60)
20+
- feat: Avoid post-edit commits when no change
21+
- chore: Update dependencies to latest versions
22+
23+
### Fixed
24+
- fix: Improved error message for uninitialized stack
25+
- fix: Improve error for re-initialization attempt
26+
- fix(prev): Different error message for empty stack
27+
- fix: Accept full ref name for branches
28+
- fix(zsh): Complete --edit and --diff for stg new
29+
30+
731
## [2.0.4] 2022-11-30
832

933
### Changed

content/man/stg-delete.adoc

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,20 @@ This can be useful for splitting a patch into smaller pieces.
3737
--branch=<branch>::
3838
Use BRANCH instead of current branch
3939

40+
--conflicts[=<policy>]::
41+
Either "allow" or "disallow" pushing a patch with conflicts.
42+
+
43+
Using `--conflicts=allow` (or just `--conflicts`) allows pushing a patch that
44+
may result in unresolved merge conflicts. The patch will be pushed and files
45+
with conflicts will be left with conflict markers to be resolved manually; or
46+
the operation undone with `stg undo --hard`. This is the default behavior and
47+
also corresponds to the "stgit.push.allow-conflicts" variable being set to "true".
48+
+
49+
Using `--conflicts=disallow` disallows pushing any patch that would result in
50+
merge conflicts. The operation will stop on the last patch that can be pushed
51+
without conflicts. This behavior can be configured by setting
52+
"stgit.push.allow-conflicts" to "false".
53+
4054
StGit
4155
-----
4256
Part of the StGit suite - see linkman:stg[1]

content/man/stg-edit.adoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,10 @@ option may be provided multiple times.
8787
+
8888
Use "now" to use the current time and date.
8989

90+
--committer-date-is-author-date::
91+
Instead of using the current time as the committer date, use the author
92+
date of the commit as the committer date.
93+
9094
--save-template=<file>::
9195
Instead of running the command, just write the patch description to FILE,
9296
and exit. (If FILE is "-", write to stdout.)

content/man/stg-float.adoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ OPTIONS
3838
--keep::
3939
Keep the local changes
4040

41+
--committer-date-is-author-date::
42+
Instead of using the current time as the committer date, use the author
43+
date of the commit as the committer date.
44+
4145
StGit
4246
-----
4347
Part of the StGit suite - see linkman:stg[1]

content/man/stg-goto.adoc

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,24 @@ OPTIONS
2929
--merged::
3030
Check for patches merged upstream
3131

32+
--committer-date-is-author-date::
33+
Instead of using the current time as the committer date, use the author
34+
date of the commit as the committer date.
35+
36+
--conflicts[=<policy>]::
37+
Either "allow" or "disallow" pushing a patch with conflicts.
38+
+
39+
Using `--conflicts=allow` (or just `--conflicts`) allows pushing a patch that
40+
may result in unresolved merge conflicts. The patch will be pushed and files
41+
with conflicts will be left with conflict markers to be resolved manually; or
42+
the operation undone with `stg undo --hard`. This is the default behavior and
43+
also corresponds to the "stgit.push.allow-conflicts" variable being set to "true".
44+
+
45+
Using `--conflicts=disallow` disallows pushing any patch that would result in
46+
merge conflicts. The operation will stop on the last patch that can be pushed
47+
without conflicts. This behavior can be configured by setting
48+
"stgit.push.allow-conflicts" to "false".
49+
3250
StGit
3351
-----
3452
Part of the StGit suite - see linkman:stg[1]

content/man/stg-import.adoc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,22 @@ OPTIONS
6767
--strip=<n>::
6868
Remove <n> leading components from diff paths (default 1)
6969

70+
--directory=<root>::
71+
Prepend <root> to all filenames. If a "-p" argument is also passed, it is
72+
applied before prepending the new root.
73+
7074
-t::
7175
--stripname::
7276
Strip number and extension from patch name
7377

7478
-C <n>::
7579
Ensure <n> lines of matching context for each change
7680

81+
-3::
82+
--3way::
83+
Attempt 3-way merge if the patch records the identity of blobs it is
84+
supposed to apply to and those blobs are available locally.
85+
7786
-i::
7887
--ignore::
7988
Ignore the applied patches in the series
@@ -140,6 +149,10 @@ option may be provided multiple times.
140149
+
141150
Use "now" to use the current time and date.
142151

152+
--committer-date-is-author-date::
153+
Instead of using the current time as the committer date, use the author
154+
date of the commit as the committer date.
155+
143156
StGit
144157
-----
145158
Part of the StGit suite - see linkman:stg[1]

content/man/stg-new.adoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,10 @@ option may be provided multiple times.
124124
+
125125
Use "now" to use the current time and date.
126126

127+
--committer-date-is-author-date::
128+
Instead of using the current time as the committer date, use the author
129+
date of the commit as the committer date.
130+
127131
--save-template=<file>::
128132
Instead of running the command, just write the patch description to FILE,
129133
and exit. (If FILE is "-", write to stdout.)

content/man/stg-pick.adoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ OPTIONS
5757
--parent=<committish>::
5858
Use <committish> as parent
5959

60+
--committer-date-is-author-date::
61+
Instead of using the current time as the committer date, use the author
62+
date of the commit as the committer date.
63+
6064
--fold::
6165
Fold the commit object into the current patch
6266

content/man/stg-pull.adoc

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,20 @@ exist in the just-pulled upstream changes. If a patch's changes have already
4747
been merged upstream, the patch will still exist in the stack, but become empty
4848
after the pull operation.
4949
50+
--conflicts[=<policy>]::
51+
Either "allow" or "disallow" pushing a patch with conflicts.
52+
+
53+
Using `--conflicts=allow` (or just `--conflicts`) allows pushing a patch that
54+
may result in unresolved merge conflicts. The patch will be pushed and files
55+
with conflicts will be left with conflict markers to be resolved manually; or
56+
the operation undone with `stg undo --hard`. This is the default behavior and
57+
also corresponds to the "stgit.push.allow-conflicts" variable being set to "true".
58+
+
59+
Using `--conflicts=disallow` disallows pushing any patch that would result in
60+
merge conflicts. The operation will stop on the last patch that can be pushed
61+
without conflicts. This behavior can be configured by setting
62+
"stgit.push.allow-conflicts" to "false".
63+
5064
StGit
5165
-----
5266
Part of the StGit suite - see linkman:stg[1]

0 commit comments

Comments
 (0)