summaryrefslogtreecommitdiff
path: root/lib/remote.tcl
diff options
context:
space:
mode:
authorLibravatar Shawn O. Pearce <spearce@spearce.org>2007-07-25 05:02:38 -0400
committerLibravatar Shawn O. Pearce <spearce@spearce.org>2007-07-25 05:02:38 -0400
commitbc318ea86d3ecd4074ecde3122b1e65f84cf9996 (patch)
treeb3008a111a8bca46147ee2a130c9603bb05d6525 /lib/remote.tcl
parentgit-gui: Format tracking branch merges as though they were pulls (diff)
downloadtgif-bc318ea86d3ecd4074ecde3122b1e65f84cf9996.tar.xz
git-gui: Remove usernames from absolute SSH urls during merging
If we are being asked to merge a tracking branch that comes from a remote repository accessed by the very common SSH URL format of "user@host:/path/to/repo" then we really don't need the username as part of the merge message, it only clutters up the history and makes things more confusing. So we instead clip the username part off if the local filesystem path is absolute, as its probably not going to be an ambiguous URL even when it is missing the username. On the other hand we cannot clip the username off if the URL is not absolute, because in such cases (e.g. "user@host:myrepo") the directory that the repository path is resolved in is relative to the user's home directory, and the username becomes important. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'lib/remote.tcl')
0 files changed, 0 insertions, 0 deletions