Open Source Development

Power Open Source Development

Explore the open source tools and capabilities for building and deploying modern applications on IBM Power platforms including AIX, IBM i, and Linux.


#Power


#Power

 View Only
  • 1.  "git diff" calls more instead of less

    Posted Fri June 07, 2019 01:20 PM

    Originally posted by: Dave_A


    Running "git diff" without any settings that would indicate which pager to use causes git to call more instead of less.  more doesn't render the colors so the display is essentially broken.  The git core.pager config and/or $PAGER could be set to tell git to use less.  However, this is not the standard behavior of git and since less is a pre-requisite for installing git there's no reason to default to more.

     

    I was using a copy of git that I had compiled myself and didn't have this problem.  I've confirmed the problem exists in at least the last two versions provided by IBM (git-2.20.1-1.aix6.1.ppc.rpm and git-2.18.0-1.aix6.1.ppc.rpm) so I assume the problem is in IBM's build environment, probably the configure script picking up something it shouldn't.

     


    #AIX-Open-Source-Software
    #AIXOpenSource


  • 2.  Re: "git diff" calls more instead of less

    Posted Mon June 10, 2019 10:17 AM

    Originally posted by: AyappanP


    Thanks for reporting the issue. 

    I see this in config.mak.uname file which is used by Makefile.

    ifeq ($(uname_S),AIX)
        DEFAULT_PAGER = more
     

    For AIX, the default pager is set to "more".  Looks like one can override this setting with the configure option --with-pager=VALUE (with VALUE being less or equivalent ). 

    As you said, using "less" as the default pager will be better. In the future builds of git, we will make the default pager to "less" . 


    #AIX-Open-Source-Software
    #AIXOpenSource


  • 3.  Re: "git diff" calls more instead of less

    Posted Mon March 30, 2020 01:18 AM

    Originally posted by: ReshmaVKumar


    This is fixed in git 2.20.2 and is now available in AIX Toolbox

    https://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/git/


    #AIX-Open-Source-Software
    #AIXOpenSource