It is well known that the spin structures on an oriented surface (with boundary) $M$ are in bijection with the set of cohomology classes $H^1(M,\mathbb{Z}/2)$. By Lefschetz duality, these correspond to homology classes $H_1(M, \partial M; \mathbb{Z}/2)$. This means that one could represent spin structures on a surface by drawing embedded curves.
Are there any references discussing this? How could one compute the boundary restrictions of a spin structure on a surface $M$ starting with a set of 1-dimensional submanifolds of $M$ representing a particular homology class?