<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/advice.h, branch v2.26.1</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.26.1</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.26.1'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2020-02-06T19:08:00Z</updated>
<entry>
<title>add: change advice config variables used by the add API</title>
<updated>2020-02-06T19:08:00Z</updated>
<author>
<name>Heba Waly</name>
<email>heba.waly@gmail.com</email>
</author>
<published>2020-02-06T10:57:30Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=887a0fd57336dc5ff3ac28b6de0be91278e9e179'/>
<id>urn:sha1:887a0fd57336dc5ff3ac28b6de0be91278e9e179</id>
<content type='text'>
advice.addNothing config variable is used to control the visibility of
two advice messages in the add library. This config variable is
replaced by two new variables, whose names are more clear and relevant
to the two cases.

Also add the two new variables to the documentation.

Signed-off-by: Heba Waly &lt;heba.waly@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>add: use advise function to display hints</title>
<updated>2020-01-15T20:15:04Z</updated>
<author>
<name>Heba Waly</name>
<email>heba.waly@gmail.com</email>
</author>
<published>2020-01-07T23:12:32Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=bf66db37f1e17b71e8edb93d78ec407fbc1e0989'/>
<id>urn:sha1:bf66db37f1e17b71e8edb93d78ec407fbc1e0989</id>
<content type='text'>
Use the advise function in advice.c to display hints to the users, as
it provides a neat and a standard format for hint messages, i.e: the
text is colored in yellow and the line starts by the word "hint:".

Also this will enable us to control the messages using advice.*
configuration variables.

Signed-off-by: Heba Waly &lt;heba.waly@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>submodule--helper: advise on fatal alternate error</title>
<updated>2019-12-03T16:49:45Z</updated>
<author>
<name>Jonathan Tan</name>
<email>jonathantanmy@google.com</email>
</author>
<published>2019-12-02T19:57:52Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=4f3e57ef13d0ad4c00d0a87f0858cde81456a2e0'/>
<id>urn:sha1:4f3e57ef13d0ad4c00d0a87f0858cde81456a2e0</id>
<content type='text'>
When recursively cloning a superproject with some shallow modules
defined in its .gitmodules, then recloning with "--reference=&lt;path&gt;", an
error occurs. For example:

  git clone --recurse-submodules --branch=master -j8 \
    https://android.googlesource.com/platform/superproject \
    master
  git clone --recurse-submodules --branch=master -j8 \
    https://android.googlesource.com/platform/superproject \
    --reference master master2

fails with:

  fatal: submodule '&lt;snip&gt;' cannot add alternate: reference repository
  '&lt;snip&gt;' is shallow

When a alternate computed from the superproject's alternate cannot be
added, whether in this case or another, advise about configuring the
"submodule.alternateErrorStrategy" configuration option and using
"--reference-if-able" instead of "--reference" when cloning.

Signed-off-by: Jonathan Tan &lt;jonathantanmy@google.com&gt;
Acked-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'ra/cherry-pick-revert-skip'</title>
<updated>2019-07-19T18:30:21Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2019-07-19T18:30:21Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d97c62c828d6f0eb7ba7067c8c24793620900dd8'/>
<id>urn:sha1:d97c62c828d6f0eb7ba7067c8c24793620900dd8</id>
<content type='text'>
"git cherry-pick/revert" learned a new "--skip" action.

* ra/cherry-pick-revert-skip:
  cherry-pick/revert: advise using --skip
  cherry-pick/revert: add --skip option
  sequencer: use argv_array in reset_merge
  sequencer: rename reset_for_rollback to reset_merge
  sequencer: add advice for revert
</content>
</entry>
<entry>
<title>Merge branch 'ds/fetch-disable-force-notice'</title>
<updated>2019-07-09T22:25:46Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2019-07-09T22:25:46Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=cde9a64ea35ceeaa5e8dd2da2662445510fe651c'/>
<id>urn:sha1:cde9a64ea35ceeaa5e8dd2da2662445510fe651c</id>
<content type='text'>
"git fetch" and "git pull" reports when a fetch results in
non-fast-forward updates to let the user notice unusual situation.
The commands learned "--no-shown-forced-updates" option to disable
this safety feature.

* ds/fetch-disable-force-notice:
  pull: add --[no-]show-forced-updates passthrough
  fetch: warn about forced updates in branch listing
  fetch: add --[no-]show-forced-updates argument
</content>
</entry>
<entry>
<title>sequencer: add advice for revert</title>
<updated>2019-07-02T19:08:07Z</updated>
<author>
<name>Rohit Ashiwal</name>
<email>rohit.ashiwal265@gmail.com</email>
</author>
<published>2019-07-02T09:11:25Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=6a1f9046a40ad69eb00e5a83c6825972113f6e0f'/>
<id>urn:sha1:6a1f9046a40ad69eb00e5a83c6825972113f6e0f</id>
<content type='text'>
In the case of merge conflicts, while performing a revert, we are
currently advised to use `git cherry-pick --&lt;sequencer-options&gt;`.
Introduce a separate advice message for `git revert`. Also change
the signature of `create_seq_dir` to handle which advice to display
selectively.

Signed-off-by: Rohit Ashiwal &lt;rohit.ashiwal265@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>fetch: warn about forced updates in branch listing</title>
<updated>2019-06-21T16:38:29Z</updated>
<author>
<name>Derrick Stolee</name>
<email>dstolee@microsoft.com</email>
</author>
<published>2019-06-18T20:25:27Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=377444b440eab3b6ef636df092f7f8299acf75bb'/>
<id>urn:sha1:377444b440eab3b6ef636df092f7f8299acf75bb</id>
<content type='text'>
The --[no-]show-forced-updates option in 'git fetch' can be confusing
for some users, especially if it is enabled via config setting and not
by argument. Add advice to warn the user that the (forced update)
messages were not listed.

Additionally, warn users when the forced update check takes longer
than ten seconds, and recommend that they disable the check. These
messages can be disabled by the advice.fetchShowForcedUpdates config
setting.

Signed-off-by: Derrick Stolee &lt;dstolee@microsoft.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>status: warn when a/b calculation takes too long</title>
<updated>2019-06-21T16:35:02Z</updated>
<author>
<name>Jeff Hostetler</name>
<email>jeffhost@microsoft.com</email>
</author>
<published>2019-06-18T20:21:27Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=0a53561a6221f989b210797e62e83fb7260fa42c'/>
<id>urn:sha1:0a53561a6221f989b210797e62e83fb7260fa42c</id>
<content type='text'>
The ahead/behind calculation in 'git status' can be slow in some
cases. Users may not realize that there are ways to avoid this
computation, especially if they are not using the information.

Add a warning that appears if this calculation takes more than
two seconds. The warning can be disabled through the new config
setting advice.statusAheadBehind.

Signed-off-by: Jeff Hostetler &lt;jeffhost@microsoft.com&gt;
Signed-off-by: Derrick Stolee &lt;dstolee@microsoft.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'dl/no-extern-in-func-decl'</title>
<updated>2019-05-13T14:50:32Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2019-05-13T14:50:32Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=4aeeef377347934d6f459e27f7d793de4ce384bb'/>
<id>urn:sha1:4aeeef377347934d6f459e27f7d793de4ce384bb</id>
<content type='text'>
Mechanically and systematically drop "extern" from function
declarlation.

* dl/no-extern-in-func-decl:
  *.[ch]: manually align parameter lists
  *.[ch]: remove extern from function declarations using sed
  *.[ch]: remove extern from function declarations using spatch
</content>
</entry>
<entry>
<title>*.[ch]: remove extern from function declarations using spatch</title>
<updated>2019-05-05T06:20:06Z</updated>
<author>
<name>Denton Liu</name>
<email>liu.denton@gmail.com</email>
</author>
<published>2019-04-29T08:28:14Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=554544276a604c144df45efcb060c80aa322088c'/>
<id>urn:sha1:554544276a604c144df45efcb060c80aa322088c</id>
<content type='text'>
There has been a push to remove extern from function declarations.
Remove some instances of "extern" for function declarations which are
caught by Coccinelle. Note that Coccinelle has some difficulty with
processing functions with `__attribute__` or varargs so some `extern`
declarations are left behind to be dealt with in a future patch.

This was the Coccinelle patch used:

	@@
	type T;
	identifier f;
	@@
	- extern
	  T f(...);

and it was run with:

	$ git ls-files \*.{c,h} |
		grep -v ^compat/ |
		xargs spatch --sp-file contrib/coccinelle/noextern.cocci --in-place

Files under `compat/` are intentionally excluded as some are directly
copied from external sources and we should avoid churning them as much
as possible.

Signed-off-by: Denton Liu &lt;liu.denton@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
