Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bin/git-branch-name
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Copy the current branch name to stdout for use in automation

Expand Down
2 changes: 1 addition & 1 deletion bin/git-change-author
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# Author: Michael Demmer https://github.com/demmer
# License: MIT
# Original source: https://github.com/jut-io/git-scripts/blob/master/bin/git-change-author
Expand Down
2 changes: 1 addition & 1 deletion bin/git-changelog
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,4 @@ for commit in repo.iter_commits(ref, paths=path):
else:
print "%s%s" % (log_text, log_text_remainder)

# git-changelog ends here
# git-changelog ends here
2 changes: 1 addition & 1 deletion bin/git-clone-subset
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# git-clone-subset - clones a subset of a git repository
#
Expand Down
2 changes: 1 addition & 1 deletion bin/git-copy-branch-name
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Copy the current branch name to the clipboard, or stdout if not on macOS

Expand Down
2 changes: 1 addition & 1 deletion bin/git-delete-merged-branches
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Quick script to purge all the branches that have been merged to a target
# branch (defaults to master)
Expand Down
2 changes: 1 addition & 1 deletion bin/git-delete-tag
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Delete a tag, both locally and from the origin remote

Expand Down
2 changes: 1 addition & 1 deletion bin/git-forest
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/perl
#!/usr/bin/env perl
#
# git-森林
# text-based tree visualisation
Expand Down
2 changes: 1 addition & 1 deletion bin/git-git
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Copyright 2014 Joe Block <jpb@unixorn.net>
#
Expand Down
2 changes: 1 addition & 1 deletion bin/git-gitlab-mr
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,4 @@ elif havecmd xdg-open; then
else
# Print URL if we can't open it
echo "$mrurl"
fi
fi
4 changes: 2 additions & 2 deletions bin/git-history-eraser
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -o errexit

# Author: David Underhill
Expand All @@ -23,4 +23,4 @@ git filter-branch --force --index-filter "git rm -rf --cached --ignore-unmatch $


# remove the temporary history git-filter-branch otherwise leaves behind for a long time
rm -rf .git/refs/original/ && git reflog expire --all && git gc --aggressive --prune
rm -rf .git/refs/original/ && git reflog expire --all && git gc --aggressive --prune
2 changes: 1 addition & 1 deletion bin/git-ls-object-refs
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ do
(git ls-tree -r "$p" |grep "$o") 2>&1 |
sed "s|^|object referenced from tree of commit $p:\n|"
done
echo
echo
2 changes: 1 addition & 1 deletion bin/git-object-deflate
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
# Usage: git-object-deflate <file>
# Deflate an loose object file and write to standard output.
exec perl -MCompress::Zlib -e 'undef $/; print uncompress(<>)'
exec perl -MCompress::Zlib -e 'undef $/; print uncompress(<>)'
2 changes: 1 addition & 1 deletion bin/git-overwritten
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# Usage: git overwritten [--[no-]color] [<head=HEAD>] [<base=origin>]
#
# Aggregates git blame information about original owners of lines changed or
Expand Down
2 changes: 1 addition & 1 deletion bin/git-prune-branches
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# git-prune-branches
#
Expand Down
2 changes: 1 addition & 1 deletion bin/git-rank-contributors
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,4 @@ lines.sort_by { |a, c| -c }.each do |a, c|
else
puts a
end
end
end
2 changes: 1 addition & 1 deletion bin/git-rebase-theirs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# git-rebase-theirs - Resolve rebase conflicts by favoring 'theirs' version
#
Expand Down
2 changes: 1 addition & 1 deletion bin/git-recently-checkedout-branches
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# Usage: git recently-checkedout-branches
#
# Shows timestamp and name of recently checked-out branches in reverse
Expand Down
2 changes: 1 addition & 1 deletion bin/git-rel
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# Original source: http://github.com/rtomayko/dotfiles
# Usage: git-rel [<ref>]
# Shows the relationship between the current branch and <ref>. With no <ref>,
Expand Down
2 changes: 1 addition & 1 deletion bin/git-related
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# Usage: git related <file>
#
# Show other files that often get changed in commits that touch `<file>`.
Expand Down
2 changes: 1 addition & 1 deletion bin/git-rename-branches
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# git-rename-branches - rename multiple branches that start with a given name
#
Expand Down
2 changes: 1 addition & 1 deletion bin/git-restore-mtime
Original file line number Diff line number Diff line change
Expand Up @@ -415,4 +415,4 @@ if args.test:
# 501.17 seconds
# 34,495,300 log lines processed
# 238,711 commits evaluated
# 40,902 updated files
# 40,902 updated files
2 changes: 1 addition & 1 deletion bin/git-roots
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# Show all the parentless commits

Expand Down
2 changes: 1 addition & 1 deletion bin/git-run-command-on-revisions
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,4 @@ debug() {
fi
}

main
main
2 changes: 1 addition & 1 deletion bin/git-what-the-hell-just-happened
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# Originally from Gary Bernhardt's dotfiles
# https://github.com/garybernhardt/dotfiles/blob/master/bin/git-what-the-hell-just-happened

Expand Down
2 changes: 1 addition & 1 deletion bin/git-where
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ fi

git describe --tags "$1"
git name-rev --tags --name-only "$1" --no-undefined 2>/dev/null ||
echo "(unreleased)"
echo "(unreleased)"