From e6c4aab711c4068a736ba80d98359aeebc11e1b3 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Tue, 20 Feb 2018 23:52:43 +0100 Subject: 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. --- git-branch-list | 12 ------------ 1 file changed, 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 () { -- cgit v1.2.3