This is related to Ahlfors' problem #5 following section 4.4.7.
Let $\sigma$ be a path in $\mathbb{C}$ starting at $-1$ and ending at $+1$.
Let $\gamma$ be a closed curve in $\mathbb{C}$ which does not intersect $\sigma$.
You can show there is an analytic branch of $\sqrt{1-z^2}$ defined on $\mathbb{C}\setminus\sigma$.
Question: What are the possible values of $\displaystyle\int_{\gamma} \frac{dz}{\sqrt{1-z^2}}$ ?
Guess at answer: The set of values $2\pi k$ for integer $k$.
It feels to me like I should be able to reduce the situation to the integral $\displaystyle\int_{-1}^{+1} \frac{dz}{\sqrt{1-z^2}}$ on the segment of the real axis, then take advantage of the fact that the integral $\displaystyle\int_{+1}^{-1} \frac{dz}{\sqrt{1-z^2}}$ on the segment with the opposite orientation, and using the other branch of the function, does not cancel the first integral.
Another thought that I had was to try to relate the integral to a winding number.
This section on Ahlfors develops the general Cauchy theorem for curves homologous to zero, talks about multiply connected domains, and develops the notion of homology basis.
I would appreciate answers containing only hints, rather that full solutions, but they will be accepted if useful.
Thank you very much.
Note: The original problems as stated in the book is
Show that a single-valued analytic branch of $\sqrt{1-z^2}$ can be defined in any region such that the points $\pm1$ are in the same component of the complement. What are the possible values of $\displaystyle\int \frac{dz}{\sqrt{1-z^2}}$ over a closed curve in the region?
Indeed. Pick an $R > 0$ large enough that the trace of $\sigma$ is contained in $D_R(0)$, and replace $\gamma$ by a homologous path $\tilde{\gamma}$ whose trace is contained in $\mathbb{C}\setminus \overline{D_R(0)}$. By Cauchy's integral theorem, that doesn't alter the integral. Now extend your branch of $\sqrt{1-z^2}$ from $\mathbb{C}\setminus \overline{D_R(0)}$ to $\mathbb{C}\setminus [-1,1]$ by analytic continuation.