I am assuming that this is meant to be a function from real numbers to real numbers.
It follows by induction from what you write that
$$g(n\Delta x)=mn\Delta x+c$$
for all integers $n$, where $c=g(0)$. If the property is meant to hold for all possible real number shifts $\Delta x$*, then we can choose $\Delta x=1/l$ for an integer $l$ to get
$$g(n/l)=m(n/l)+c$$
So, for rational inputs ($x$ is rational if it is the ratio of two integers), the only possible functions with this property are in the form $g(x)=mx+c$.
You may be interested in reading
https://en.wikipedia.org/wiki/Cauchy%27s_functional_equation
Your equation is an example of a functional equation, related to the one in the article.
*If the condition holds for a particular value of $\Delta x$ only, then there are clearly more solutions. Namely, if we add to $g$ any periodic function with period $\Delta x$.
*To answer the new, edited question, if $f(x+\Delta x)-f(x)=g(\Delta x)$ for all $x,\Delta x$ then, for rationals $x$, $f(x)=mx+c$ for some real $m,c$ and $g(x)=mx$ for the same $m$. Again, there are solutions which don't take this form. To describe them, we would use a $\mathbb{Q}$-basis for $\mathbb{R}$, i.e. a set $B$ of real numbers such that any real number may be written uniquely as a finite sum $\sum a_ib_i$ with $b_i\in B$ and $a_i\in \mathbb{Q}$. Given such a set we define $f(\sum a_ib_i)=\sum a_im_i+c_i$ for reals $m_i,c_i$ and $g(\sum a_ib_i)=\sum a_im_i$.