wfxr / forgit

:zzz: A utility tool powered by fzf for using git interactively.
MIT License
4.4k stars 137 forks source link

Add formula to homebrew #194

Closed arihant2math closed 1 year ago

arihant2math commented 2 years ago

Check list

Environment info

Problem / Steps to reproduce

There is no homebrew formula for forgit, this is my default package manager.

cjappl commented 2 years ago

@arihant2math I think this is a great idea, and seeing as you have 9 thumbs up for it, seems like a lot of people agree!

Any chance you have the time to write up a PR for it? I think the only requirements is that it installs the correct bindings for each applicable shell (fish/bash/zsh). Not sure how brew deals with commands like this that are kind of aliases of other commands.

vicendominguez commented 2 years ago

There is a previous step to do here. We need versioning in forgit. Brew doesn't like unversioned-things®

arihant2math commented 2 years ago

@vicendominguez Created #233 for that

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

carlfriedrich commented 1 year ago

I like this idea as well and will put this on my agenda for the near future.

aasutossh commented 1 year ago
class Forgit < Formula
  desc "Interactive git commands in the terminal"
  homepage "https://github.com/wfxr/forgit"
  url "https://github.com/wfxr/forgit/releases/download/23.01.0/forgit-23.01.0.tar.gz"
  sha256 "2f7b0b4defbeb0945c5e644283749e62d901f1f1389eaddf9c591ab7091a27ae"
  license "MIT"

  depends_on "fzf"

  def install
    bin.install "bin/git-forgit" => "forgit"
  end

  test do
    system "which", "forgit"
  end
end

is enough. I have https://github.com/aasutossh/homebrew-core/tree/forgit-formula ready to do the PR. You can do it too. I'll leave the rest to you.

Update: Source: https://docs.brew.sh/Formula-Cookbook

carlfriedrich commented 1 year ago

Done with https://github.com/Homebrew/homebrew-core/pull/129392.