Skip to content

plan, another direction. #4

@MichaelDimmitt

Description

@MichaelDimmitt

basic behaviors

  1. by default take all branches. configure branches to be untracked at later time.
  2. get_branch_timestamps () #by default go through each branch and timestamp most recent commit. add them to a hidden text file.
    -- this is done, using first column in text file = date, second column = name.
  3. automerge() #traverse the branches via the timestamp. ensuring oldest branches remain old.

poor-man's

poor-man's, automerge: (without realtime tracking this could become way simpler.)
you tell me the order in a text file.

one line of bash script... (pending the test coverage) (integration test)
not currently tested, writing test solution (in progress).

alias automerge=`count=0; previous="empty"; cat .yourfile.txt | while read line ; do git checkout $line; git pull; if [ "$count" -gt "1" ] then; git checkout $line; git merge $previous; fi previous=$line; count=$count+1; done

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions