Package Details: git-extras 6.3.0-2

Git Clone URL: (read-only, click to copy)
Package Base: git-extras
Description: GIT utilities -- repo summary, commit counting, repl, changelog population and more
Upstream URL:
Licenses: MIT
Submitter: Schnouki
Maintainer: liljaylj (alerque)
Last Packager: liljaylj
Votes: 68
Popularity: 0.56
First Submitted: 2010-08-26 12:33
Last Updated: 2021-11-13 16:07

Dependencies (1)

Required by (0)

Sources (1)

Latest Comments

« First ‹ Previous 1 2 3 Next › Last »

lenormf commented on 2020-02-07 08:01

From t he upstream Makefile:

    @echo "If you are a zsh user, you may want to 'source $(CODE_DIR)etc/git-extras-completion.zsh'" \
        "and put this line into ~/.zshrc to enable zsh completion"

This package doesn't deploy etc/git-extras-completion.zsh, I want it to, so I can source it and have completion in ZSH.

eschwartz commented on 2020-02-07 05:16

The git-extras project does not provide a zsh-completion file. Such files are traditionally installed to /usr/share/zsh/site-functions/_foo, and are loaded on-demand as documented here:

Instead there is a file which is manually sourced by the user's zshrc, and is totally incompatible with the builtin completion system.

This will not get installed, because there is nowhere to install it to.

And having a .install file modify the user's $HOME/.zshrc is a bannable offense, so I would not do that since then, as a TU, I'd be obligated to ban myself. ;)

lenormf commented on 2020-02-05 08:22

Then make the PKGBUILD always install the ZSH completion?

whynothugo commented on 2020-02-05 07:55

No, what you're proposing is simply not possible.

The PKGBUILD is executed to BUILD the package, but what you're trying to determine something on the machine where the package will be installed.

Building and installation can happen in different machines. While you can use the .install file to achieve something like this, keep in mind that, generally, packages always install zsh-completion. This also helps in case the installation order is the opposite (first this, then zsh).

lenormf commented on 2020-02-05 07:33

Is there an idiomatic way (from a PKGBUILD standpoint) to auto-detect if ZSH is installed, to deploy its completion file automatically?

Maybe something like if command -v zsh 2>&1 >/dev/null; then ….

eschwartz commented on 2018-05-22 04:00

No. git-extras-git is correctly marked as conflicting with this, doing it the other way around is both redundant and incorrect.

francoism90 commented on 2018-05-20 12:29

@Eschwartz Please add conflicts git-extras-git :)

eschwartz commented on 2016-02-05 19:30


That error was there from before I adopted it. ;) I guess I just never noticed.
I guess it wasn't a problem until pacman 5 came along, which is stricter about that.

I've pushed the fixed PKGBUILD. No pkgver bump, since it's only needed to prevent the package from utterly failing to build.

leesei commented on 2016-02-05 19:02

( Unsupported package: Potentially dangerous ! )
==> git-extras dependencies:
- git (already installed)
I got these error with the recent update:

==> Continue building git-extras ? [Y/n]
==> ------------------------------------
==> Building and installing package
==> ERROR: source should be an array
==> ERROR: Makepkg was unable to build git-extras.
==> Restart building git-extras ? [y/N]

hoodie commented on 2014-12-21 22:12

I'm using Mic92s version right now, works

please update :D