Re: [PATCH] simplified the chain if() statements of install_branch_config() function in branch.c
- From
- Nemina Amarasinghe <neminaa@gmail.com>
- Date
- Mar 10, 2014, 09:15 UTC
- Message-ID
- <loom.20140310T101112-236@post.gmane.org>
- In-Reply-To
- <878usia09y.fsf@fencepost.gnu.org>
Show 10 quoted lines
> > ((!remote_is_branch && origin) || (!remote_is_branch || !origin)) > > Is it? > > The above is the same as (!remote_is_branch || !origin). What you wrote > before is the same as (!remote_is_branch). > > Maybe you should try copy&paste from the expressions you are trying to > combine to make sure that what you start with makes sense. >
OMG.. Really sorry for that... that was a silly mistake. This is the one..
((!remote_is_branch && origin) || (!remote_is_branch && !origin))