]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge https://github.com/prati0100/git-gui
authorJunio C Hamano <gitster@pobox.com>
Thu, 24 Aug 2023 16:57:43 +0000 (09:57 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 24 Aug 2023 16:57:43 +0000 (09:57 -0700)
* https://github.com/prati0100/git-gui:
  git-gui - use mkshortcut on Cygwin
  git-gui - use cygstart to browse on Cygwin
  git-gui - remove obsolete Cygwin specific code
  git gui Makefile - remove Cygwin modifications
  Makefiles: change search through $(MAKEFLAGS) for GNU make 4.4
  Work around Tcl's default `PATH` lookup
  Move the `_which` function (almost) to the top
  Move is_<platform> functions to the beginning
  is_Cygwin: avoid `exec`ing anything
  windows: ignore empty `PATH` elements
  git-gui: Fix a typo in README

1  2 
git-gui/Makefile
git-gui/README.md
git-gui/git-gui.sh
git-gui/lib/choose_repository.tcl
git-gui/lib/shortcut.tcl

index a0d5a4b28e171542a0bfca2a3e833607aa47d409,0000000000000000000000000000000000000000..3f80435436c11d2f36ee626450ae72697570ca8e
mode 100644,000000..100644
--- /dev/null
@@@ -1,349 -1,0 +1,334 @@@
- ifeq ($(uname_O),Cygwin)
-       GITGUI_SCRIPT := `cygpath --windows --absolute "$(GITGUI_SCRIPT)"`
-       # Is this a Cygwin Tcl/Tk binary?  If so it knows how to do
-       # POSIX path translation just like cygpath does and we must
-       # keep libdir in POSIX format so Cygwin packages of git-gui
-       # work no matter where the user installs them.
-       #
-       ifeq ($(shell echo 'puts [file normalize /]' | '$(TCL_PATH_SQ)'),$(shell cygpath --mixed --absolute /))
-               gg_libdir_sed_in := $(gg_libdir)
-       else
-               gg_libdir_sed_in := $(shell cygpath --windows --absolute "$(gg_libdir)")
-       endif
- else
-       ifeq ($(exedir),$(gg_libdir))
-               GITGUI_RELATIVE := 1
-       endif
-       gg_libdir_sed_in := $(gg_libdir)
 +all::
 +
 +# Define V=1 to have a more verbose compile.
 +#
 +# Define NO_MSGFMT if you do not have msgfmt from the GNU gettext
 +# package and want to use our rough pure Tcl po->msg translator.
 +# TCL_PATH must be valid for this to work.
 +#
 +
 +GIT-VERSION-FILE: FORCE
 +      @$(SHELL_PATH) ./GIT-VERSION-GEN
 +ifneq ($(MAKECMDGOALS),clean)
 +-include GIT-VERSION-FILE
 +endif
 +
 +uname_S := $(shell sh -c 'uname -s 2>/dev/null || echo not')
 +uname_O := $(shell sh -c 'uname -o 2>/dev/null || echo not')
 +uname_R := $(shell sh -c 'uname -r 2>/dev/null || echo not')
 +
 +SCRIPT_SH = git-gui.sh
 +GITGUI_MAIN := git-gui
 +GITGUI_BUILT_INS = git-citool
 +ALL_LIBFILES = $(wildcard lib/*.tcl)
 +PRELOAD_FILES = lib/class.tcl
 +NONTCL_LIBFILES = \
 +      lib/git-gui.ico \
 +      $(wildcard lib/win32_*.js) \
 +#end NONTCL_LIBFILES
 +
 +ifndef SHELL_PATH
 +      SHELL_PATH = /bin/sh
 +endif
 +
 +ifndef gitexecdir
 +      gitexecdir := $(shell git --exec-path)
 +endif
 +
 +ifndef sharedir
 +ifeq (git-core,$(notdir $(gitexecdir)))
 +      sharedir := $(dir $(patsubst %/,%,$(dir $(gitexecdir))))share
 +else
 +      sharedir := $(dir $(gitexecdir))share
 +endif
 +endif
 +
 +ifndef INSTALL
 +      INSTALL = install
 +endif
 +
 +RM_RF     ?= rm -rf
 +RMDIR     ?= rmdir
 +
 +INSTALL_D0 = $(INSTALL) -d -m 755 # space is required here
 +INSTALL_D1 =
 +INSTALL_R0 = $(INSTALL) -m 644 # space is required here
 +INSTALL_R1 =
 +INSTALL_X0 = $(INSTALL) -m 755 # space is required here
 +INSTALL_X1 =
 +INSTALL_A0 = find # space is required here
 +INSTALL_A1 = | cpio -pud
 +INSTALL_L0 = rm -f # space is required here
 +INSTALL_L1 = && ln # space is required here
 +INSTALL_L2 =
 +INSTALL_L3 =
 +
 +REMOVE_D0  = $(RMDIR) # space is required here
 +REMOVE_D1  = || true
 +REMOVE_F0  = $(RM_RF) # space is required here
 +REMOVE_F1  =
 +CLEAN_DST  = true
 +
 +ifndef V
 +      QUIET          = @
 +      QUIET_GEN      = $(QUIET)echo '   ' GEN '$@' &&
 +      QUIET_INDEX    = $(QUIET)echo '   ' INDEX $(dir $@) &&
 +      QUIET_MSGFMT0  = $(QUIET)printf '    MSGFMT %12s ' $@ && v=`
 +      QUIET_MSGFMT1  = 2>&1` && echo "$$v" | sed -e 's/fuzzy translations/fuzzy/' | sed -e 's/ messages*//g'
 +      QUIET_2DEVNULL = 2>/dev/null
 +
 +      INSTALL_D0 = dir=
 +      INSTALL_D1 = && echo ' ' DEST $$dir && $(INSTALL) -d -m 755 "$$dir"
 +      INSTALL_R0 = src=
 +      INSTALL_R1 = && echo '   ' INSTALL 644 `basename $$src` && $(INSTALL) -m 644 $$src
 +      INSTALL_X0 = src=
 +      INSTALL_X1 = && echo '   ' INSTALL 755 `basename $$src` && $(INSTALL) -m 755 $$src
 +      INSTALL_A0 = src=
 +      INSTALL_A1 = && echo '   ' INSTALL '   ' `basename "$$src"` && find "$$src" | cpio -pud
 +
 +      INSTALL_L0 = dst=
 +      INSTALL_L1 = && src=
 +      INSTALL_L2 = && dst=
 +      INSTALL_L3 = && echo '   ' 'LINK       ' `basename "$$dst"` '->' `basename "$$src"` && rm -f "$$dst" && ln "$$src" "$$dst"
 +
 +      CLEAN_DST = echo ' ' UNINSTALL
 +      REMOVE_D0 = dir=
 +      REMOVE_D1 = && echo ' ' REMOVE $$dir && test -d "$$dir" && $(RMDIR) "$$dir" || true
 +      REMOVE_F0 = dst=
 +      REMOVE_F1 = && echo '   ' REMOVE `basename "$$dst"` && $(RM_RF) "$$dst"
 +endif
 +
 +TCLTK_PATH ?= wish
 +ifeq (./,$(dir $(TCLTK_PATH)))
 +      TCL_PATH ?= $(subst wish,tclsh,$(TCLTK_PATH))
 +else
 +      TCL_PATH ?= $(dir $(TCLTK_PATH))$(notdir $(subst wish,tclsh,$(TCLTK_PATH)))
 +endif
 +
 +ifeq ($(uname_S),Darwin)
 +      TKFRAMEWORK = /Library/Frameworks/Tk.framework/Resources/Wish.app
 +      ifeq ($(shell echo "$(uname_R)" | awk -F. '{if ($$1 >= 9) print "y"}')_$(shell test -d $(TKFRAMEWORK) || echo n),y_n)
 +              TKFRAMEWORK = /System/Library/Frameworks/Tk.framework/Resources/Wish.app
 +              ifeq ($(shell test -d $(TKFRAMEWORK) || echo n),n)
 +                      TKFRAMEWORK = /System/Library/Frameworks/Tk.framework/Resources/Wish\ Shell.app
 +              endif
 +      endif
 +      TKEXECUTABLE = $(shell basename "$(TKFRAMEWORK)" .app)
 +endif
 +
 +ifeq ($(findstring $(firstword -$(MAKEFLAGS)),s),s)
 +QUIET_GEN =
 +endif
 +
 +-include config.mak
 +
 +DESTDIR_SQ = $(subst ','\'',$(DESTDIR))
 +gitexecdir_SQ = $(subst ','\'',$(gitexecdir))
 +SHELL_PATH_SQ = $(subst ','\'',$(SHELL_PATH))
 +TCL_PATH_SQ = $(subst ','\'',$(TCL_PATH))
 +TCLTK_PATH_SQ = $(subst ','\'',$(TCLTK_PATH))
 +TCLTK_PATH_SED = $(subst ','\'',$(subst \,\\,$(TCLTK_PATH)))
 +
 +gg_libdir ?= $(sharedir)/git-gui/lib
 +libdir_SQ  = $(subst ','\'',$(gg_libdir))
 +libdir_SED = $(subst ','\'',$(subst \,\\,$(gg_libdir_sed_in)))
 +exedir     = $(dir $(gitexecdir))share/git-gui/lib
 +
 +GITGUI_SCRIPT   := $$0
 +GITGUI_RELATIVE :=
 +GITGUI_MACOSXAPP :=
 +
++ifeq ($(exedir),$(gg_libdir))
++      GITGUI_RELATIVE := 1
 +endif
++gg_libdir_sed_in := $(gg_libdir)
 +ifeq ($(uname_S),Darwin)
 +      ifeq ($(shell test -d $(TKFRAMEWORK) && echo y),y)
 +              GITGUI_MACOSXAPP := YesPlease
 +      endif
 +endif
 +ifneq (,$(findstring MINGW,$(uname_S)))
 +ifeq ($(shell expr "$(uname_R)" : '1\.'),2)
 +      NO_MSGFMT=1
 +endif
 +      GITGUI_WINDOWS_WRAPPER := YesPlease
 +      GITGUI_RELATIVE := 1
 +endif
 +
 +ifdef GITGUI_MACOSXAPP
 +GITGUI_MAIN := git-gui.tcl
 +
 +git-gui: GIT-VERSION-FILE GIT-GUI-VARS
 +      $(QUIET_GEN)rm -f $@ $@+ && \
 +      echo '#!$(SHELL_PATH_SQ)' >$@+ && \
 +      echo 'if test "z$$*" = zversion ||' >>$@+ && \
 +      echo '   test "z$$*" = z--version' >>$@+ && \
 +      echo then >>$@+ && \
 +      echo '  'echo \'git-gui version '$(GITGUI_VERSION)'\' >>$@+ && \
 +      echo else >>$@+ && \
 +      echo '  libdir="$${GIT_GUI_LIB_DIR:-$(libdir_SQ)}"' >>$@+ && \
 +      echo '  'exec \"'$$libdir/Git Gui.app/Contents/MacOS/$(subst \,,$(TKEXECUTABLE))'\" \
 +              '"$$0" "$$@"' >>$@+ && \
 +      echo fi >>$@+ && \
 +      chmod +x $@+ && \
 +      mv $@+ $@
 +
 +Git\ Gui.app: GIT-VERSION-FILE GIT-GUI-VARS \
 +              macosx/Info.plist \
 +              macosx/git-gui.icns \
 +              macosx/AppMain.tcl \
 +              $(TKFRAMEWORK)/Contents/MacOS/$(TKEXECUTABLE)
 +      $(QUIET_GEN)rm -rf '$@' '$@'+ && \
 +      mkdir -p '$@'+/Contents/MacOS && \
 +      mkdir -p '$@'+/Contents/Resources/Scripts && \
 +      cp '$(subst ','\'',$(subst \,,$(TKFRAMEWORK)/Contents/MacOS/$(TKEXECUTABLE)))' \
 +              '$@'+/Contents/MacOS && \
 +      cp macosx/git-gui.icns '$@'+/Contents/Resources && \
 +      sed -e 's/@@GITGUI_VERSION@@/$(GITGUI_VERSION)/g' \
 +              -e 's/@@GITGUI_TKEXECUTABLE@@/$(TKEXECUTABLE)/g' \
 +              macosx/Info.plist \
 +              >'$@'+/Contents/Info.plist && \
 +      sed -e 's|@@gitexecdir@@|$(gitexecdir_SQ)|' \
 +              -e 's|@@GITGUI_LIBDIR@@|$(libdir_SED)|' \
 +              macosx/AppMain.tcl \
 +              >'$@'+/Contents/Resources/Scripts/AppMain.tcl && \
 +      mv '$@'+ '$@'
 +endif
 +
 +ifdef GITGUI_WINDOWS_WRAPPER
 +GITGUI_MAIN := git-gui.tcl
 +
 +git-gui: windows/git-gui.sh
 +      cp $< $@
 +endif
 +
 +$(GITGUI_MAIN): git-gui.sh GIT-VERSION-FILE GIT-GUI-VARS
 +      $(QUIET_GEN)rm -f $@ $@+ && \
 +      sed -e '1s|#!.*/sh|#!$(SHELL_PATH_SQ)|' \
 +              -e 's|@@SHELL_PATH@@|$(SHELL_PATH_SQ)|' \
 +              -e '1,30s|^ argv0=$$0| argv0=$(GITGUI_SCRIPT)|' \
 +              -e '1,30s|^ exec wish | exec '\''$(TCLTK_PATH_SED)'\'' |' \
 +              -e 's/@@GITGUI_VERSION@@/$(GITGUI_VERSION)/g' \
 +              -e 's|@@GITGUI_RELATIVE@@|$(GITGUI_RELATIVE)|' \
 +              -e '$(GITGUI_RELATIVE)s|@@GITGUI_LIBDIR@@|$(libdir_SED)|' \
 +              git-gui.sh >$@+ && \
 +      chmod +x $@+ && \
 +      mv $@+ $@
 +
 +XGETTEXT   ?= xgettext
 +ifdef NO_MSGFMT
 +      MSGFMT ?= $(TCL_PATH) po/po2msg.sh
 +else
 +      MSGFMT ?= msgfmt
 +      ifneq ($(shell $(MSGFMT) --tcl -l C -d . /dev/null 2>/dev/null; echo $$?),0)
 +              MSGFMT := $(TCL_PATH) po/po2msg.sh
 +      endif
 +endif
 +
 +msgsdir     = $(gg_libdir)/msgs
 +msgsdir_SQ  = $(subst ','\'',$(msgsdir))
 +PO_TEMPLATE = po/git-gui.pot
 +ALL_POFILES = $(wildcard po/*.po)
 +ALL_MSGFILES = $(subst .po,.msg,$(ALL_POFILES))
 +
 +$(PO_TEMPLATE): $(SCRIPT_SH) $(ALL_LIBFILES)
 +      $(XGETTEXT) -kmc -LTcl -o $@ $(SCRIPT_SH) $(ALL_LIBFILES)
 +update-po:: $(PO_TEMPLATE)
 +      $(foreach p, $(ALL_POFILES), echo Updating $p ; msgmerge -U $p $(PO_TEMPLATE) ; )
 +$(ALL_MSGFILES): %.msg : %.po
 +      $(QUIET_MSGFMT0)$(MSGFMT) --statistics --tcl -l $(basename $(notdir $<)) -d $(dir $@) $< $(QUIET_MSGFMT1)
 +
 +lib/tclIndex: $(ALL_LIBFILES) GIT-GUI-VARS
 +      $(QUIET_INDEX)if echo \
 +        $(foreach p,$(PRELOAD_FILES),source $p\;) \
 +        auto_mkindex lib $(patsubst lib/%,%,$(sort $(ALL_LIBFILES))) \
 +      | $(TCL_PATH) $(QUIET_2DEVNULL); then : ok; \
 +      else \
 +       echo >&2 "    * $(TCL_PATH) failed; using unoptimized loading"; \
 +       rm -f $@ ; \
 +       echo '# Autogenerated by git-gui Makefile' >$@ && \
 +       echo >>$@ && \
 +       $(foreach p,$(PRELOAD_FILES) $(sort $(ALL_LIBFILES)),echo '$(subst lib/,,$p)' >>$@ &&) \
 +       echo >>$@ ; \
 +      fi
 +
 +TRACK_VARS = \
 +      $(subst ','\'',SHELL_PATH='$(SHELL_PATH_SQ)') \
 +      $(subst ','\'',TCL_PATH='$(TCL_PATH_SQ)') \
 +      $(subst ','\'',TCLTK_PATH='$(TCLTK_PATH_SQ)') \
 +      $(subst ','\'',gitexecdir='$(gitexecdir_SQ)') \
 +      $(subst ','\'',gg_libdir='$(libdir_SQ)') \
 +      GITGUI_MACOSXAPP=$(GITGUI_MACOSXAPP) \
 +#end TRACK_VARS
 +
 +GIT-GUI-VARS: FORCE
 +      @VARS='$(TRACK_VARS)'; \
 +      if test x"$$VARS" != x"`cat $@ 2>/dev/null`" ; then \
 +              echo >&2 "    * new locations or Tcl/Tk interpreter"; \
 +              echo >$@ "$$VARS"; \
 +      fi
 +
 +ifdef GITGUI_MACOSXAPP
 +all:: git-gui Git\ Gui.app
 +endif
 +ifdef GITGUI_WINDOWS_WRAPPER
 +all:: git-gui
 +endif
 +all:: $(GITGUI_MAIN) lib/tclIndex $(ALL_MSGFILES)
 +
 +install: all
 +      $(QUIET)$(INSTALL_D0)'$(DESTDIR_SQ)$(gitexecdir_SQ)' $(INSTALL_D1)
 +      $(QUIET)$(INSTALL_X0)git-gui $(INSTALL_X1) '$(DESTDIR_SQ)$(gitexecdir_SQ)'
 +      $(QUIET)$(INSTALL_X0)git-gui--askpass $(INSTALL_X1) '$(DESTDIR_SQ)$(gitexecdir_SQ)'
 +      $(QUIET)$(foreach p,$(GITGUI_BUILT_INS), $(INSTALL_L0)'$(DESTDIR_SQ)$(gitexecdir_SQ)/$p' $(INSTALL_L1)'$(DESTDIR_SQ)$(gitexecdir_SQ)/git-gui' $(INSTALL_L2)'$(DESTDIR_SQ)$(gitexecdir_SQ)/$p' $(INSTALL_L3) &&) true
 +ifdef GITGUI_WINDOWS_WRAPPER
 +      $(QUIET)$(INSTALL_R0)git-gui.tcl $(INSTALL_R1) '$(DESTDIR_SQ)$(gitexecdir_SQ)'
 +endif
 +      $(QUIET)$(INSTALL_D0)'$(DESTDIR_SQ)$(libdir_SQ)' $(INSTALL_D1)
 +      $(QUIET)$(INSTALL_R0)lib/tclIndex $(INSTALL_R1) '$(DESTDIR_SQ)$(libdir_SQ)'
 +ifdef GITGUI_MACOSXAPP
 +      $(QUIET)$(INSTALL_A0)'Git Gui.app' $(INSTALL_A1) '$(DESTDIR_SQ)$(libdir_SQ)'
 +      $(QUIET)$(INSTALL_X0)git-gui.tcl $(INSTALL_X1) '$(DESTDIR_SQ)$(libdir_SQ)'
 +endif
 +      $(QUIET)$(foreach p,$(ALL_LIBFILES) $(NONTCL_LIBFILES), $(INSTALL_R0)$p $(INSTALL_R1) '$(DESTDIR_SQ)$(libdir_SQ)' &&) true
 +      $(QUIET)$(INSTALL_D0)'$(DESTDIR_SQ)$(msgsdir_SQ)' $(INSTALL_D1)
 +      $(QUIET)$(foreach p,$(ALL_MSGFILES), $(INSTALL_R0)$p $(INSTALL_R1) '$(DESTDIR_SQ)$(msgsdir_SQ)' &&) true
 +
 +uninstall:
 +      $(QUIET)$(CLEAN_DST) '$(DESTDIR_SQ)$(gitexecdir_SQ)'
 +      $(QUIET)$(REMOVE_F0)'$(DESTDIR_SQ)$(gitexecdir_SQ)'/git-gui $(REMOVE_F1)
 +      $(QUIET)$(REMOVE_F0)'$(DESTDIR_SQ)$(gitexecdir_SQ)'/git-gui--askpass $(REMOVE_F1)
 +      $(QUIET)$(foreach p,$(GITGUI_BUILT_INS), $(REMOVE_F0)'$(DESTDIR_SQ)$(gitexecdir_SQ)'/$p $(REMOVE_F1) &&) true
 +ifdef GITGUI_WINDOWS_WRAPPER
 +      $(QUIET)$(REMOVE_F0)'$(DESTDIR_SQ)$(gitexecdir_SQ)'/git-gui.tcl $(REMOVE_F1)
 +endif
 +      $(QUIET)$(CLEAN_DST) '$(DESTDIR_SQ)$(libdir_SQ)'
 +      $(QUIET)$(REMOVE_F0)'$(DESTDIR_SQ)$(libdir_SQ)'/tclIndex $(REMOVE_F1)
 +ifdef GITGUI_MACOSXAPP
 +      $(QUIET)$(REMOVE_F0)'$(DESTDIR_SQ)$(libdir_SQ)/Git Gui.app' $(REMOVE_F1)
 +      $(QUIET)$(REMOVE_F0)'$(DESTDIR_SQ)$(libdir_SQ)'/git-gui.tcl $(REMOVE_F1)
 +endif
 +      $(QUIET)$(foreach p,$(ALL_LIBFILES) $(NONTCL_LIBFILES), $(REMOVE_F0)'$(DESTDIR_SQ)$(libdir_SQ)'/$(notdir $p) $(REMOVE_F1) &&) true
 +      $(QUIET)$(CLEAN_DST) '$(DESTDIR_SQ)$(msgsdir_SQ)'
 +      $(QUIET)$(foreach p,$(ALL_MSGFILES), $(REMOVE_F0)'$(DESTDIR_SQ)$(msgsdir_SQ)'/$(notdir $p) $(REMOVE_F1) &&) true
 +      $(QUIET)$(REMOVE_D0)'$(DESTDIR_SQ)$(gitexecdir_SQ)' $(REMOVE_D1)
 +      $(QUIET)$(REMOVE_D0)'$(DESTDIR_SQ)$(msgsdir_SQ)' $(REMOVE_D1)
 +      $(QUIET)$(REMOVE_D0)'$(DESTDIR_SQ)$(libdir_SQ)' $(REMOVE_D1)
 +      $(QUIET)$(REMOVE_D0)`dirname '$(DESTDIR_SQ)$(libdir_SQ)'` $(REMOVE_D1)
 +
 +dist-version:
 +      @mkdir -p $(TARDIR)
 +      @echo $(GITGUI_VERSION) > $(TARDIR)/version
 +
 +clean::
 +      $(RM_RF) $(GITGUI_MAIN) lib/tclIndex po/*.msg
 +      $(RM_RF) GIT-VERSION-FILE GIT-GUI-VARS
 +ifdef GITGUI_MACOSXAPP
 +      $(RM_RF) 'Git Gui.app'* git-gui
 +endif
 +ifdef GITGUI_WINDOWS_WRAPPER
 +      $(RM_RF) git-gui
 +endif
 +
 +.PHONY: all install uninstall dist-version clean
 +.PHONY: FORCE
index 5ce2122fbc618384f66f4e1f08f98bca047db1c0,0000000000000000000000000000000000000000..b460b649a8ccfec587dab03fb3c516007ab1a060
mode 100644,000000..100644
--- /dev/null
@@@ -1,174 -1,0 +1,174 @@@
- [here](https://www.freedesktop.org/wiki/Software/PulseAudio/HowToUseGitSendEmail/)
 +# Git GUI - A graphical user interface for Git
 +
 +Git GUI allows you to use the [Git source control management
 +tools](https://git-scm.com/) via a GUI. This includes staging, committing,
 +adding, pushing, etc. It can also be used as a blame viewer, a tree browser,
 +and a citool (make exactly one commit before exiting and returning to shell).
 +More details about Git GUI can be found in its manual page by either running
 +`man git-gui`, or by visiting the [online manual
 +page](https://git-scm.com/docs/git-gui).
 +
 +Git GUI was initially written by Shawn O. Pearce, and is distributed with the
 +standard Git installation.
 +
 +# Building and installing
 +
 +You need to have the following dependencies installed before you begin:
 +
 +- Git
 +- Tcl
 +- Tk
 +- wish
 +- Gitk (needed for browsing history)
 +- msgfmt
 +
 +Most of Git GUI is written in Tcl, so there is no compilation involved. Still,
 +some things do need to be done (mostly some substitutions), so you do need to
 +"build" it.
 +
 +You can build Git GUI using:
 +
 +```
 +make
 +```
 +
 +And then install it using:
 +
 +```
 +make install
 +```
 +
 +You probably need to have root/admin permissions to install.
 +
 +# Contributing
 +
 +The project is currently maintained by Pratyush Yadav over at
 +https://github.com/prati0100/git-gui. Even though the project is hosted at
 +GitHub, the development does not happen over GitHub Issues and Pull Requests.
 +Instead, an email based workflow is used. The Git mailing list
 +[git@vger.kernel.org](mailto:git@vger.kernel.org) is where the patches are
 +discussed and reviewed.
 +
 +More information about the Git mailing list and instructions to subscribe can
 +be found [here](https://git.wiki.kernel.org/index.php/GitCommunity).
 +
 +## Sending your changes
 +
 +Since the development happens over email, you need to send in your commits in
 +text format. Commits can be converted to emails via the two tools provided by
 +Git: `git-send-email` and `git-format-patch`.
 +
 +You can use `git-format-patch` to generate patches in mbox format from your
 +commits that can then be sent via email. Let's say you are working on a branch
 +called 'foo' that was created on top of 'master'. You can run:
 +
 +```
 +git format-patch -o output_dir master..foo
 +```
 +
 +to convert all the extra commits in 'foo' into a set of patches saved in the
 +folder `output_dir`.
 +
 +If you are sending multiple patches, it is recommended to include a cover
 +letter. A cover letter is an email explaining in brief what the series is
 +supposed to do. A cover letter template can be generated by passing
 +`--cover-letter` to `git-format-patch`.
 +
 +After you send your patches, you might get a review suggesting some changes.
 +Make those changes, and re-send your patch(es) in reply to the first patch of
 +your initial version. Also please mention the version of the patch. This can be
 +done by passing `-v X` to `git-format-patch`, where 'X' is the version number
 +of the patch(es).
 +
 +### Using git-send-email
 +
 +You can use `git-send-email` to send patches generated via `git-format-patch`.
 +While you can directly send patches via `git-send-email`, it is recommended
 +that you first use `git-format-patch` to generate the emails, audit them, and
 +then send them via `git-send-email`.
 +
 +A pretty good guide to configuring and using `git-send-email` can be found
++[here](https://www.freedesktop.org/wiki/Software/PulseAudio/HowToUseGitSendEmail/).
 +
 +### Using your email client
 +
 +If your email client supports sending mbox format emails, you can use
 +`git-format-patch` to get an mbox file for each commit, and then send them. If
 +there is more than one patch in the series, then all patches after the first
 +patch (or the cover letter) need to be sent as replies to the first.
 +`git-send-email` does this by default.
 +
 +### Using GitGitGadget
 +
 +Since some people prefer a GitHub pull request based workflow, they can use
 +[GitGitGadget](https://gitgitgadget.github.io/) to send in patches. The tool
 +was originally written for sending patches to the Git project, but it now also
 +supports sending patches for git-gui.
 +
 +Instructions for using GitGitGadget to send git-gui patches, courtesy of
 +Johannes Schindelin:
 +
 +If you don't already have a fork of the [git/git](https://github.com/git/git)
 +repo, you need to make one. Then clone your fork:
 +
 +```
 +git clone https://github.com/<your-username>/git
 +```
 +
 +Then add GitGitGadget as a remote:
 +
 +```
 +git remote add gitgitgadget https://github.com/gitgitgadget/git
 +```
 +
 +Then fetch the git-gui branch:
 +
 +```
 +git fetch gitgitgadget git-gui/master
 +```
 +
 +Then create a new branch based on git-gui/master:
 +
 +```
 +git checkout -b <your-branch-name> git-gui/master
 +```
 +
 +Make whatever commits you need to, push them to your fork, and then head over
 +to https://github.com/gitgitgadget/git/pulls and open a Pull Request targeting
 +git-gui/master.
 +
 +GitGitGadget will welcome you with a (hopefully) helpful message.
 +
 +## Signing off
 +
 +You need to sign off your commits before sending them to the list. You can do
 +that by passing the `-s` option to `git-commit`. You can also use the "Sign
 +Off" option in Git GUI.
 +
 +A sign-off is a simple 'Signed-off-by: A U Thor \<author@example.com\>' line at
 +the end of the commit message, after your explanation of the commit.
 +
 +A sign-off means that you are legally allowed to send the code, and it serves
 +as a certificate of origin. More information can be found at
 +[developercertificate.org](https://developercertificate.org/).
 +
 +## Responding to review comments
 +
 +It is quite likely your patches will get review comments. Those comments are
 +sent on the Git mailing list as replies to your patch, and you will usually be
 +Cc'ed in those replies.
 +
 +You are expected to respond by either explaining your code further to convince
 +the reviewer what you are doing is correct, or acknowledge the comments and
 +re-send the patches with those comments addressed.
 +
 +Some tips for those not familiar with communication on a mailing list:
 +
 +- Use only plain text emails. No HTML at all.
 +- Wrap lines at around 75 characters.
 +- Do not send attachments. If you do need to send some files, consider using a
 +  hosting service, and paste the link in your email.
 +- Do not [top post](http://www.idallen.com/topposting.html).
 +- Always "reply all". Keep all correspondents and the list in Cc. If you reply
 +  directly to a reviewer, and not Cc the list, other people would not be able
 +  to chime in.
Simple merge
Simple merge
Simple merge