<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/advice.c, 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>Merge branch 'jh/status-aheadbehind'</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=34186225b3ca3109586fd63ee83aeea342dc668e'/>
<id>urn:sha1:34186225b3ca3109586fd63ee83aeea342dc668e</id>
<content type='text'>
"git status" can be told a non-standard default value for the
"--[no-]ahead-behind" option with a new configuration variable
status.aheadBehind.

* jh/status-aheadbehind:
  status: ignore status.aheadbehind in porcelain formats
  status: warn when a/b calculation takes too long
  status: add status.aheadbehind setting
</content>
</entry>
<entry>
<title>Merge branch 'nd/switch-and-restore'</title>
<updated>2019-07-09T22:25:44Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2019-07-09T22:25:44Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f496b064fc1135e0dded7f93d85d72eb0b302c22'/>
<id>urn:sha1:f496b064fc1135e0dded7f93d85d72eb0b302c22</id>
<content type='text'>
Two new commands "git switch" and "git restore" are introduced to
split "checking out a branch to work on advancing its history" and
"checking out paths out of the index and/or a tree-ish to work on
advancing the current history" out of the single "git checkout"
command.

* nd/switch-and-restore: (46 commits)
  completion: disable dwim on "git switch -d"
  switch: allow to switch in the middle of bisect
  t2027: use test_must_be_empty
  Declare both git-switch and git-restore experimental
  help: move git-diff and git-reset to different groups
  doc: promote "git restore"
  user-manual.txt: prefer 'merge --abort' over 'reset --hard'
  completion: support restore
  t: add tests for restore
  restore: support --patch
  restore: replace --force with --ignore-unmerged
  restore: default to --source=HEAD when only --staged is specified
  restore: reject invalid combinations with --staged
  restore: add --worktree and --staged
  checkout: factor out worktree checkout code
  restore: disable overlay mode by default
  restore: make pathspec mandatory
  restore: take tree-ish from --source option instead
  checkout: split part of it to new command 'restore'
  doc: promote "git switch"
  ...
</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>
</feed>
