Skip to content

Commit bdc4204

Browse files
committed
Merge branch 'maint'
* maint: git-compat-util.h: use apparently more common __sgi macro to detect SGI IRIX Documentation: A...B shortcut for checkout and rebase Documentation/pretty-{formats,options}: better reference for "format:<string>"
2 parents 225c93a + 761a889 commit bdc4204

File tree

5 files changed

+14
-5
lines changed

5 files changed

+14
-5
lines changed

Documentation/git-checkout.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,10 @@ edits from your current working tree.
154154
As a special case, the `"@\{-N\}"` syntax for the N-th last branch
155155
checks out the branch (instead of detaching). You may also specify
156156
`-` which is synonymous with `"@\{-1\}"`.
157+
+
158+
As a further special case, you may use `"A...B"` as a shortcut for the
159+
merge base of `A` and `B` if there is exactly one merge base. You can
160+
leave out at most one of `A` and `B`, in which case it defaults to `HEAD`.
157161

158162
<new_branch>::
159163
Name for the new branch.

Documentation/git-rebase.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,10 @@ OPTIONS
206206
--onto option is not specified, the starting point is
207207
<upstream>. May be any valid commit, and not just an
208208
existing branch name.
209+
+
210+
As a special case, you may use "A...B" as a shortcut for the
211+
merge base of A and B if there is exactly one merge base. You can
212+
leave out at most one of A and B, in which case it defaults to HEAD.
209213

210214
<upstream>::
211215
Upstream branch to compare against. May be any valid commit,

Documentation/pretty-formats.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@ displayed in full, regardless of whether --abbrev or
7676
true parent commits, without taking grafts nor history
7777
simplification into account.
7878

79-
* 'format:'
79+
* 'format:<string>'
8080
+
81-
The 'format:' format allows you to specify which information
81+
The 'format:<string>' format allows you to specify which information
8282
you want to show. It works a little bit like printf format,
8383
with the notable exception that you get a newline with '%n'
8484
instead of '\n'.

Documentation/pretty-options.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33

44
Pretty-print the contents of the commit logs in a given format,
55
where '<format>' can be one of 'oneline', 'short', 'medium',
6-
'full', 'fuller', 'email', 'raw' and 'format:<string>'.
7-
When omitted, the format defaults to 'medium'.
6+
'full', 'fuller', 'email', 'raw' and 'format:<string>'. See
7+
the "PRETTY FORMATS" section for some additional details for each
8+
format. When omitted, the format defaults to 'medium'.
89
+
910
Note: you can specify the default pretty format in the repository
1011
configuration (see linkgit:git-config[1]).

git-compat-util.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
# define _XOPEN_SOURCE 500
5757
# endif
5858
#elif !defined(__APPLE__) && !defined(__FreeBSD__) && !defined(__USLC__) && \
59-
!defined(_M_UNIX) && !defined(sgi) && !defined(__DragonFly__)
59+
!defined(_M_UNIX) && !defined(__sgi) && !defined(__DragonFly__)
6060
#define _XOPEN_SOURCE 600 /* glibc2 and AIX 5.3L need 500, OpenBSD needs 600 for S_ISLNK() */
6161
#define _XOPEN_SOURCE_EXTENDED 1 /* AIX 5.3L needs this */
6262
#endif

0 commit comments

Comments
 (0)