help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

get Emacs soruce (was: Re: bug with `apropos-value' in Emacs 29.0?)


From: Emanuel Berg
Subject: get Emacs soruce (was: Re: bug with `apropos-value' in Emacs 29.0?)
Date: Mon, 23 May 2022 23:07:28 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Marcin Borkowski wrote:

>>> `git fetch` only downloads the info about the new code and
>>> puts it into `.git` but it doesn't change the actual
>>> source files. IOW it's like downloading the tarball of
>>> a new release without unpacking it
>>
>> OK, cool, should change that to 'pull' then ...
>
> Probably not.
>
> https://longair.net/blog/2009/04/16/git-fetch-and-merge/

OK, so now it looks like this, i.e. the part that has to do
with the Emacs source.

Does it look good or should you not use pull in the reset
function either? (Maybe one could just remove the whole
directory and start over for the reset.)

emacs-src-get () {
    cd $src_dir
    git clone $emacs_src
}

emacs-src-update () {
    cd $emacs_dir
    git fetch
    git merge
}

emacs-src-reset () {
    cd $emacs_dir
    git reset --hard
    git clean -xdf
    git config pull.rebase false
    git pull $emacs_src
}

https://dataswamp.org/~incal/conf/.zsh/install-emacs

-- 
underground experts united
https://dataswamp.org/~incal




reply via email to

[Prev in Thread] Current Thread [Next in Thread]