aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2018-02-20 23:52:43 +0100
committerTeddy Wing2018-02-20 23:54:47 +0100
commite6c4aab711c4068a736ba80d98359aeebc11e1b3 (patch)
tree66747714ba4f4a07a6f0ef68d7762b98d2ef979a
parent6dd6f1a8c83edebe7d6bd2264d5fc9963a0991e2 (diff)
downloadgit-branch-list-e6c4aab711c4068a736ba80d98359aeebc11e1b3.tar.bz2
git-branch-list: Remove obsolete comments
Some ideas or old versions of code that is no longer relevant. I've also decided not to implement the TODO and have the list IDs change when you change the list like in `git stash`, at least for now. I'll keep the TODO in mind when I use the program and reevaluate to see whether it makes sense to have fixed IDs.
-rwxr-xr-xgit-branch-list12
1 files changed, 0 insertions, 12 deletions
diff --git a/git-branch-list b/git-branch-list
index 167bad4..9a24ccf 100755
--- a/git-branch-list
+++ b/git-branch-list
@@ -2,8 +2,6 @@
# git branch-list/bl [save|drop|#id]
-# database=
-# if -f .git then database= .git/info/git-branch-list
DATABASE=.git/info/git-branch-list
function initialise_database () {
@@ -15,22 +13,12 @@ function initialise_database () {
function save_branch () {
local branch=$(branch_or_current_branch "$1")
-# sed -i '.bak' "0i\\
-# $branch
-# " "$DATABASE"
-#
-# rm "${DATABASE}.bak"
-
-# # echo "$branch" >> "$DATABASE"
-
if fgrep "$branch" "$DATABASE" > /dev/null; then
return 1
fi
cat <(echo "$branch") "$DATABASE" > "${DATABASE}.bak"
mv "${DATABASE}.bak" "$DATABASE"
-
- # TODO: append instead of prepend so IDs stay the same. Maybe?
}
function drop_branch () {