git-repo

Changelog

Changelog

Changes of git-repo.

0.7.8 (2021-11-19)

Improvements:

  • arm64: native Apple Silicon (M1) support to Mac builds
  • sshinfo: check response of ssh_info for bad hostname
  • ci: remove azure-pipeline, use github-action instead
  • Setup githb action
  • test: turn off git advice and warnings
  • After load manifests, check and fixup missing attrs
  • sync: check published ref if has –check-published option
  • sync: clean obsolete mirror repositories
  • sync: remove obsolete gitdir if obsolete project deleted
  • init: do not init repo with InitByLink for mirror
  • sync: refactor: move UpdateProjectList() to workspace
  • sync: instead of removing obsolete projects, show instructions

0.7.7 (2020-12-15)

Improvements:

  • sync: Set default tracking branch even for fixed revision

  • upload: do not upload fixed revision if not changed

  • helper: add new field pushurl in ssh-info

  • project: default use pushurl defined in manifest file instead of ssh_info resp

  • workspace: show error if review is undefined for remote

  • test: result of Variant() may change on different env

  • manifest: Merge duplicate fields if attribute override is true

  • ssh-info api: add new field review_ref

    Add new member field review_ref in ssh_info API. When downloading
    a review, return the reference name by parsing the pattern defined in
    review_ref of ssh_info.

Bugfix and style:

  • Bug: do not set push.default for repository
  • upload: create parent dir for cache of upload-options
  • upload: fix warning of redundant type

0.7.6 (2020-10-13)

Improvements:

  • Add http proxy support in command git-repo upgrade
  • Fix http proxy support for API call of ssh-info

Bugfix:

  • go 1.15 compatible issue: not add rune with int

0.7.5 (2020-09-08)

Improvements:

  • Support using http proxy when access ssh_info API
  • prune: drop branches without a tracking branch
  • start: not setup tracking branch for immutable rev

Bugfix:

  • bugfix: close project.list file before rename
  • Transfer repository from aliyun to alibaba

0.7.4 (2020-03-03)

Bugfix:

  • To prevent wrong flag for OpenFile, use new file package
  • fix: config example file is not completely overwritten
  • Set proper Revision for manifest project
  • sync: remove unused and unsafe code
  • init: detach manifests project for immutable revision
  • init: when switch manifest branch, use hard reset
  • ssh-info: run ssh_info once for the same hosts

0.7.3.1 (2020-01-13)

  • Windows: fix wrong URL for repos of a manifest project.

0.7.3 (2020-01-11)

  • The first release on github.com: github.com/aliyun/git-repo
  • upgrade: download and install tar.gz/zip package
  • README: how to use git-repo
  • upload: confirm all upload tasks if no editor defined
  • editor: search editor from candidates
  • editor: work with editor path with spaces in git-bash
  • upgrade: get program path using os.Executable
  • test: fixed test cases for Linux

0.7.1 (2020-01-02)

New features:

  • Add helper for protocol extension, and use can add external helper.
  • Smart selection of remote if repository has many remotes defined.
  • AGit-Flow 2.0: set AGIT_FLOW environment for git connection.
  • AGit-Flow 2.0: support version of ssh_info response.
  • AGit-Flow 2.0: multiple users working on one code review.
  • AGit-Flow 2.0: force push prevention if oldoid is provided.

Refactors, Enhancements and bugfixes:

  • Many refactors, such as project.Remote.
  • upload: can upload repo managed by git-worktree
  • path: IsGitDir work with git worktree command
  • version: add compatible issue for version below 2.9.0
  • upload: fallback to ~/.git-repo/UPLOAD_OPTIONS if no file found

0.6.1 (2019-11-10)

  • manifest: repo compatible parsing for project revision

0.6.0 (2019-11-08)

NOTE: All users are suggested to upgrade to this version. Local changed files
will not be overwritten.

  • Show project path in log message as prompt
  • init: force create default branch for manifest project
  • sync: do not overwrite local changed files
  • sync: sync -d: always detach even if nothing changed
  • sync: should not make manifest project detached
  • init: no need to set color if color.ui defined in git global/system config
  • by setting app.git.repo.disabled can git-repo for certain workspace
  • init: use git-init command to create repository

0.5.1 (2019-09-09)

New features:

  • upload: cache different upload options settings for different target branch
  • upload: only show title and description in editor for upload for the 1st time
  • Some commands work for repo in mirror mode

Refactors, Enhancements and bugfixes:

  • Disable upx, because some Mac users report errors
  • refactor: rename variables name, such as RepoRoot
  • refactor: Add DotGit, SharedGitDir in repository

0.5.0 (2019-08-20)

New features:

  • New cmd: git repo abandon
  • New cmd: git repo prune
  • New command: git repo manifest
  • cmd/manifest: freeze manifest revision if provided -r option

Refactors, Enhancements and bugfixes:

  • color: add Hilight and Dim methods
  • refactor: do not check Remote type to get reviewable branch
  • repository: get last modified of a revision
  • bugfix: not change Revision during network-half
  • refactor: make WorkRepository as embedding struct for Project
  • go.mod: update goconfig, check cache against file size
  • refactor: rename Path field name of Repository to RepoDir
  • refactor: remove ObjectRepository from project
  • refactor: IsClean only returns one boolean
  • test: add test cases for cmd/manifest
  • test: update test cases for manifest
  • refactor: rename command executable entrance name
  • test: remove pipes, which suppress errors being report

0.4.2 (2019-08-08)

  • Compress binaries using UPX

0.4.1 (2019-08-07)

  • peer-review: support –remote and –dest option
  • New command: git repo list
  • download: support –remote option
  • compatibility: Use push options only if git is greater than 2.10.0
  • compatibility: Show compatible issues of git versions
  • compatibility: Fix compatible issue of Gerrit hook
  • compatibility: Use absolute path for ‘include.path’ directive
  • README: add badge for CI build status
  • compatibility: Use strings.Replace to be compatible with go 1.11
  • compatibility: enable GO111MODULE for build and test
  • compatibility: remove test case which depends on higher version of git
  • doc: add godoc
  • download: cherry-pick all commits for one code review

0.3.1 (2019-6-26)

Enhancement and bugfix:

  • bugfix: add protection for write git extra config file
  • Only set push.default to nothing if it is unset
  • Makefile: build with vendor and new release target
  • Ignore vendor dir
  • filter: ignore errors for smudge
  • debug: add more debug info for repo sync
  • upload: clean published refs for single mode

0.3.0 (2019-6-22) DEPRECATED

New Features:

  • Add alias command: git download
  • New command: download, for offline code review
  • Add –no-cache option to ignore ssh_info API cache
  • config: add new filter driver keyword-subst
  • New command: filter, for keyword-subst content filter
  • Install Gerrit hooks if review server is Gerrit
  • Set push.default to nothing if remote is reviewable

Enhancement and bugfix:

  • test: change branch name to upper case for test
  • goconfig: fix upper case section name issue
  • refactor LoadRemote for single repository workspace
  • ParseGitURL can parse file:// and other protocol
  • test: add mock options for git-repo sync command
  • test: add test cases for git-repo filter
  • sync: default use 4 jobs
  • test: add test case for git pr –br
  • Not quit immediately if cannot get review URL
  • refactor: delay load remote for GitWorkspace
  • Only save config for DisableDefaultPush when necessary
  • Format every multi-log imports by adding alias log
  • Fix some spellings

0.2.1 (2019-6-26)

Enhancement and bugfix:

  • bugfix: add protection for write git extra config file
  • Makefile: build with vendor and new release target

0.2.0 (2019-6-9) DEPRECATED

  • “git repo –version” follows the same rule as version command
  • test: add test cases for submodule projects
  • refactor: urlJoin should keep spaces unchanged
  • Add build tag for windows build support
  • test: use git peer-review instead of git review
  • When comparing, undefined version is lower than others
  • New alias: git pr, stands for git peer-review
  • version: check if git-repo aliases can be used safely
  • Install ~/.git-repo/config.yml.example file
  • refactor: store extra git config and comments in string

0.1.0 (2019-6-5)

  • upgrade: show download progress
  • upgrade: add –no-cert-checks option
  • upgrade: validate package by sha256 sum and gpg signature
  • refactor: viper only bind necessary flags in rootcmd
  • bugfix: continue push if consume yes on dirty worktree

0.0.3 (2019-5-29)

New feature:

  • New command: git repo upgrade
  • New command: git repo status
  • New command: git-repo forall

Enhancement and bugfix:

  • Get project’s HEAD from .gitdir inside worktree
  • go.mod: update modules goconfig and multi-log
  • refactor: move executeResult from forall to project
  • sync: not quit if fail to check remote server type
  • sync: return error if work repo is nil when syncing
  • goconfig: fix index out of range bug
  • upload: use knownReviewHosts to help to find review URL
  • upload: show log info if cannot upload a branch
  • upload: one dialog for options and branches edition
  • upload: use more readable upload options message
  • upload: New option –no-edit
  • Update edit script error message
  • Open an editor for user to custom upload options
  • refactor: parse reviewers later in UploadAndReport method

0.0.2 (2019-5-20)

  • test: add test case for install hooks
  • Link Gerrit hooks when sync repo from Gerrit
  • Install git-hook templates to ~/.git-repo/hooks
  • LinkManifest failed if cannot find manifest file
  • refactor: use NewEmptyRepoWorkSpace for initial workspace
  • If init from a wrong URL, remove and quit
  • sync: segfault: check if ws.Manifest is nil
  • upload: add debug info for upload command
  • Encode reviewers and cc using encodeString
  • test: fixed review test URL
  • If SSH port is 29418, set remote type to Gerrit
  • Hide standard SSH port for SSHInfo
  • refactor: handle review URL for single git repository
  • Do not add –receive-pack option for http URL when pushing
  • Check git URL using config.ParseGitURL
  • Not check ssh_info, if review URL is rsync protocol
  • refactor: move git address pattern to config
  • Read ReviewURL from git config remote.origin.review
  • test: mock ssh-info API when calling git-repo sync
  • sync: call ssh_info API and install hooks if remote is Gerrit
  • test: add test cases for git review (upload –single)
  • Add alias command ‘git review’

0.0.1 (2019-5-14)

  • Initial version