I’m not familiar with the kernel sources. If the Makefile is part of the
git tree, you can commit your changes and always do a git pull --rebase
when you need the new changes. If not (Makefile is generated somehow), then
you have to create some automation that changes that line (like a sed
script or something).

On 20 October 2014 20:22, Kevin Wilson <wkev...@gmail.com> wrote:

> Hello, git-users,
>
> I have clone a kernel git repo of a Linux kernel.
> The "EXTRAVERSION" line of the Makefile is empty.
>
> I changed the "EXTRAVERSION" line of the Makefile accoding to my needs
> (lets say, for example, changed it o
> EXTRAVERSION = "- my_extra_version"
>
> Now, with this tree, there are times when I run "git reset --hard" for
> going to
> previous commits, and there are times when I perform "git pull".
>
> In the usual case, the EXTRAVERSION line of the Makefile returns to be
> empty, when I
> run "git reset --hard commitId".
>
> Is there a way to change it so that the Makefile
>  will stay with my change when I run  "git reset --hard commitId" and
> also when I run
> "git pull" ?
>
> regards,
> Kevin
>
> --
> You received this message because you are subscribed to the Google Groups
> "Git for human beings" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to git-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to