neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 25cfe3fd432d77689446fe5a0bb972479298387c
parent 5f03a1eaabfc8de2b3a9c666fcd604763f41e152
Author: dundargoc <gocdundar@gmail.com>
Date:   Mon, 23 Oct 2023 21:03:15 +0200

build: enable formatting during rebase

Closes https://github.com/neovim/neovim/issues/25654

Diffstat:
Mcmake/Format.cmake | 4+---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/cmake/Format.cmake b/cmake/Format.cmake @@ -1,15 +1,13 @@ # Returns a list of all files that has been changed in current branch compared # to master branch. This includes unstaged, staged and committed files. function(get_changed_files outvar) - set(default_branch master) - execute_process( COMMAND git branch --show-current OUTPUT_VARIABLE current_branch OUTPUT_STRIP_TRAILING_WHITESPACE) execute_process( - COMMAND git merge-base ${default_branch} ${current_branch} + COMMAND git merge-base master HEAD OUTPUT_VARIABLE ancestor_commit OUTPUT_STRIP_TRAILING_WHITESPACE)