<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/builtin/push.c, branch gitk-resize-error</title>
<subtitle>Fork of git SCM with my patches.</subtitle>
<id>http://git.kilabit.info/git/atom?h=gitk-resize-error</id>
<link rel='self' href='http://git.kilabit.info/git/atom?h=gitk-resize-error'/>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/'/>
<updated>2022-01-05T21:29:23Z</updated>
<entry>
<title>i18n: turn "options are incompatible" into "cannot be used together"</title>
<updated>2022-01-05T21:29:23Z</updated>
<author>
<name>Jean-Noël Avila</name>
<email>jn.avila@free.fr</email>
</author>
<published>2022-01-05T20:02:16Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=12909b6b8a4a51e9d2b46610be4f93c782949c80'/>
<id>urn:sha1:12909b6b8a4a51e9d2b46610be4f93c782949c80</id>
<content type='text'>
Signed-off-by: Jean-Noël Avila &lt;jn.avila@free.fr&gt;
Reviewed-by: Johannes Sixt &lt;j6t@kdbg.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>advice: remove read uses of most global `advice_` variables</title>
<updated>2021-08-25T19:07:52Z</updated>
<author>
<name>Ben Boeckel</name>
<email>mathstuf@gmail.com</email>
</author>
<published>2021-08-23T10:44:00Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=ed9bff0817d5a7500b50a39c1c35b44aa3e72578'/>
<id>urn:sha1:ed9bff0817d5a7500b50a39c1c35b44aa3e72578</id>
<content type='text'>
In c4a09cc9ccb (Merge branch 'hw/advise-ng', 2020-03-25), a new API for
accessing advice variables was introduced and deprecated `advice_config`
in favor of a new array, `advice_setting`.

This patch ports all but two uses which read the status of the global
`advice_` variables over to the new `advice_enabled` API. We'll deal
with advice_add_embedded_repo and advice_graft_file_deprecated
separately.

Signed-off-by: Ben Boeckel &lt;mathstuf@gmail.com&gt;
Signed-off-by: Ævar Arnfjörð Bjarmason &lt;avarab@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>push: don't get a full remote object</title>
<updated>2021-06-02T01:12:03Z</updated>
<author>
<name>Felipe Contreras</name>
<email>felipe.contreras@gmail.com</email>
</author>
<published>2021-05-31T19:51:24Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=7088ce71918a0f9fde2ceb421d4b332888a202c7'/>
<id>urn:sha1:7088ce71918a0f9fde2ceb421d4b332888a202c7</id>
<content type='text'>
All we need to know is that their names are the same.

Additionally this might be easier to parse for some since
remote_for_branch is more descriptive than remote_get(NULL).

Signed-off-by: Felipe Contreras &lt;felipe.contreras@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>push: only check same_remote when needed</title>
<updated>2021-06-02T01:12:02Z</updated>
<author>
<name>Felipe Contreras</name>
<email>felipe.contreras@gmail.com</email>
</author>
<published>2021-05-31T19:51:23Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=e0c91cffde8477ababb5163180f08e29da54db3e'/>
<id>urn:sha1:e0c91cffde8477ababb5163180f08e29da54db3e</id>
<content type='text'>
Signed-off-by: Felipe Contreras &lt;felipe.contreras@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>push: remove trivial function</title>
<updated>2021-06-02T01:12:02Z</updated>
<author>
<name>Felipe Contreras</name>
<email>felipe.contreras@gmail.com</email>
</author>
<published>2021-05-31T19:51:22Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=c5b09cf771ea3c340335aeff501ebec342f78aa4'/>
<id>urn:sha1:c5b09cf771ea3c340335aeff501ebec342f78aa4</id>
<content type='text'>
It's a single line that is used in a single place, and the variable has
the same name as the function.

Signed-off-by: Felipe Contreras &lt;felipe.contreras@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>push: remove redundant check</title>
<updated>2021-06-02T01:12:02Z</updated>
<author>
<name>Felipe Contreras</name>
<email>felipe.contreras@gmail.com</email>
</author>
<published>2021-05-31T19:51:21Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=1afd78fb5c29b8ad95de072bb8a0edacc69db61a'/>
<id>urn:sha1:1afd78fb5c29b8ad95de072bb8a0edacc69db61a</id>
<content type='text'>
If fetch_remote is NULL (i.e. the branch remote is invalid), then it
can't possibly be same as remote, which can't be NULL.

The check is redundant, and so is the extra variable.

Also, fix the Yoda condition: we want to check if remote is the same as
the branch remote, not the other way around.

Signed-off-by: Felipe Contreras &lt;felipe.contreras@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>push: factor out the typical case</title>
<updated>2021-06-02T01:12:02Z</updated>
<author>
<name>Felipe Contreras</name>
<email>felipe.contreras@gmail.com</email>
</author>
<published>2021-05-31T19:51:20Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=1f934725f7597366c981b72be6597124e2c21a77'/>
<id>urn:sha1:1f934725f7597366c981b72be6597124e2c21a77</id>
<content type='text'>
Only override dst on the odd case.

This allows a preemptive break on the `simple` case.

Signed-off-by: Felipe Contreras &lt;felipe.contreras@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>push: get rid of all the setup_push_* functions</title>
<updated>2021-06-02T01:12:02Z</updated>
<author>
<name>Felipe Contreras</name>
<email>felipe.contreras@gmail.com</email>
</author>
<published>2021-05-31T19:51:19Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=0add899baf5a9ee478659821327db719ce74454a'/>
<id>urn:sha1:0add899baf5a9ee478659821327db719ce74454a</id>
<content type='text'>
Their code is much simpler now and can move into the parent function.

Signed-off-by: Felipe Contreras &lt;felipe.contreras@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>push: trivial simplifications</title>
<updated>2021-06-02T01:12:01Z</updated>
<author>
<name>Felipe Contreras</name>
<email>felipe.contreras@gmail.com</email>
</author>
<published>2021-05-31T19:51:18Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=d371a9ef4cfc4610989b0a3d71c79cbe19e0073a'/>
<id>urn:sha1:d371a9ef4cfc4610989b0a3d71c79cbe19e0073a</id>
<content type='text'>
Signed-off-by: Felipe Contreras &lt;felipe.contreras@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>push: make setup_push_* return the dst</title>
<updated>2021-06-02T01:12:01Z</updated>
<author>
<name>Felipe Contreras</name>
<email>felipe.contreras@gmail.com</email>
</author>
<published>2021-05-31T19:51:17Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=00458dc5f191f52ef965ca7185b739e8c800b7cb'/>
<id>urn:sha1:00458dc5f191f52ef965ca7185b739e8c800b7cb</id>
<content type='text'>
All of the setup_push_* functions are appending a refspec. Do this only
once on the parent function.

Signed-off-by: Felipe Contreras &lt;felipe.contreras@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
