Hello community,

here is the log from the commit of package hub for openSUSE:Factory checked in 
at 2019-09-23 12:39:34
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/hub (Old)
 and      /work/SRC/openSUSE:Factory/.hub.new.7948 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "hub"

Mon Sep 23 12:39:34 2019 rev:8 rq:732500 version:2.12.6

Changes:
--------
--- /work/SRC/openSUSE:Factory/hub/hub.changes  2019-09-09 12:39:33.929431277 
+0200
+++ /work/SRC/openSUSE:Factory/.hub.new.7948/hub.changes        2019-09-23 
12:39:55.385585228 +0200
@@ -1,0 +2,7 @@
+Sat Sep 21 19:50:01 UTC 2019 - Martin Hauke <mar...@gmx.de>
+
+- Update to version 2.12.6
+  * Added hub pr to fish completions script
+  * Have fish completions script wrap git if hub is aliased
+
+-------------------------------------------------------------------

Old:
----
  hub-2.12.4.tar.gz

New:
----
  hub-2.12.6.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ hub.spec ++++++
--- /var/tmp/diff_new_pack.ow4OTS/_old  2019-09-23 12:39:55.725585171 +0200
+++ /var/tmp/diff_new_pack.ow4OTS/_new  2019-09-23 12:39:55.729585171 +0200
@@ -18,7 +18,7 @@
 
 %define ver %{version}
 Name:           hub
-Version:        2.12.4
+Version:        2.12.6
 Release:        0
 Summary:        Command-line wrapper for git and GitHub
 License:        MIT

++++++ hub-2.12.4.tar.gz -> hub-2.12.6.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hub-2.12.4/etc/hub.fish_completion 
new/hub-2.12.6/etc/hub.fish_completion
--- old/hub-2.12.4/etc/hub.fish_completion      2019-09-06 23:00:06.000000000 
+0200
+++ new/hub-2.12.6/etc/hub.fish_completion      2019-09-21 17:30:41.000000000 
+0200
@@ -1,3 +1,5 @@
+complete -c hub --wraps git
+
 function __fish_hub_needs_command
   set cmd (commandline -opc)
   if [ (count $cmd) -eq 1 ]
@@ -9,12 +11,17 @@
 
 function  __fish_hub_using_command
   set cmd (commandline -opc)
-  if [ (count $cmd) -gt 1 ]
-    if [ $argv[1] = $cmd[2] ]
-      return 0
+  set subcmd_count (count $argv)
+  if [ (count $cmd) -gt "$subcmd_count" ]
+    for i in (seq 1 "$subcmd_count")
+      if [ "$argv[$i]" != $cmd[(math "$i" + 1)] ]
+        return 1
+      end
     end
+    return 0
+  else
+    return 1
   end
-  return 1
 end
 
 complete -f -c hub -n '__fish_hub_needs_command' -a alias -d "show shell 
instructions for wrapping git"
@@ -24,7 +31,7 @@
 complete -f -c hub -n '__fish_hub_needs_command' -a delete -d "delete a GitHub 
repo"
 complete -f -c hub -n '__fish_hub_needs_command' -a fork -d "fork origin repo 
on GitHub"
 complete -f -c hub -n '__fish_hub_needs_command' -a pull-request -d "open a 
pull request on GitHub"
-complete -f -c hub -n '__fish_hub_needs_command' -a pr -d "list or checkout a 
GitHub release"
+complete -f -c hub -n '__fish_hub_needs_command' -a pr -d "list or checkout 
GitHub pull requests"
 complete -f -c hub -n '__fish_hub_needs_command' -a issue -d "list or create a 
GitHub issue"
 complete -f -c hub -n '__fish_hub_needs_command' -a release -d "list or create 
a GitHub release"
 complete -f -c hub -n '__fish_hub_needs_command' -a ci-status -d "display 
GitHub Status information for a commit"
@@ -44,6 +51,19 @@
 complete -f -c hub -n ' __fish_hub_using_command pull-request' -s a -d 'A 
comma-separated list of GitHub handles to assign to this pull request'
 complete -f -c hub -n ' __fish_hub_using_command pull-request' -s M -d "The 
milestone name to add to this pull request. Passing the milestone number is 
deprecated."
 complete -f -c hub -n ' __fish_hub_using_command pull-request' -s l -d "Add a 
comma-separated list of labels to this pull request"
+# pr
+complete -f -c hub -n ' __fish_hub_using_command pr' -l color -xa 'always 
never auto' -d 'enable colored output even if stdout is not a terminal. WHEN 
can be one of "always" (default for --color), "never", or "auto" (default).'
+## pr list
+complete -f -c hub -n ' __fish_hub_using_command pr' -a list -d "list pull 
requests in the current repository"
+complete -f -c hub -n ' __fish_hub_using_command pr list' -s s -l state -xa 
'open closed merged all' -d 'filter pull requests by STATE. default: open'
+complete -f -c hub -n ' __fish_hub_using_command pr list' -s h -l head -d 
'show pull requests started from the specified head BRANCH in "[OWNER:]BRANCH" 
format'
+complete -f -c hub -n ' __fish_hub_using_command pr list' -s b -l base -d 
'show pull requests based off the specified BRANCH'
+complete -f -c hub -n ' __fish_hub_using_command pr list' -s o -l sort -xa 
'created updated popularity long-running' -d 'default: created'
+complete -f -c hub -n ' __fish_hub_using_command pr list' -s '^' -l 
sort-ascending -d 'sort by ascending dates instead of descending'
+complete -f -c hub -n ' __fish_hub_using_command pr list' -s f -l format -d 
'pretty print the list of pull requests using format FORMAT (default: 
"%pC%>(8)%i%Creset  %t%  l%n")'
+complete -f -c hub -n ' __fish_hub_using_command pr list' -s L -l limit -d 
'display only the first LIMIT issues'
+## pr checkout
+complete -f -c hub -n ' __fish_hub_using_command pr' -a checkout -d "check out 
the head of a pull request in a new branch"
 # fork
 complete -f -c hub -n ' __fish_hub_using_command fork' -l no-remote -d "Skip 
adding a git remote for the fork"
 # browse
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hub-2.12.4/git/ssh_config.go 
new/hub-2.12.6/git/ssh_config.go
--- old/hub-2.12.4/git/ssh_config.go    2019-09-06 23:00:06.000000000 +0200
+++ new/hub-2.12.6/git/ssh_config.go    2019-09-21 17:30:41.000000000 +0200
@@ -6,6 +6,8 @@
        "path/filepath"
        "regexp"
        "strings"
+
+       "github.com/mitchellh/go-homedir"
 )
 
 const (
@@ -15,12 +17,16 @@
 type SSHConfig map[string]string
 
 func newSSHConfigReader() *SSHConfigReader {
+       configFiles := []string{
+               "/etc/ssh_config",
+               "/etc/ssh/ssh_config",
+       }
+       if homedir, err := homedir.Dir(); err == nil {
+               userConfig := filepath.Join(homedir, ".ssh", "config")
+               configFiles = append([]string{userConfig}, configFiles...)
+       }
        return &SSHConfigReader{
-               Files: []string{
-                       filepath.Join(os.Getenv("HOME"), ".ssh/config"),
-                       "/etc/ssh_config",
-                       "/etc/ssh/ssh_config",
-               },
+               Files: configFiles,
        }
 }
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hub-2.12.4/github/config.go 
new/hub-2.12.6/github/config.go
--- old/hub-2.12.4/github/config.go     2019-09-06 23:00:06.000000000 +0200
+++ new/hub-2.12.6/github/config.go     2019-09-21 17:30:41.000000000 +0200
@@ -192,7 +192,7 @@
 }
 
 func getPassword() (string, error) {
-       stdin := syscall.Stdin
+       stdin := 0 // syscall.Stdin
        initialTermState, err := terminal.GetState(stdin)
        if err != nil {
                return "", err
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hub-2.12.4/script/changelog 
new/hub-2.12.6/script/changelog
--- old/hub-2.12.4/script/changelog     2019-09-06 23:00:06.000000000 +0200
+++ new/hub-2.12.6/script/changelog     2019-09-21 17:30:41.000000000 +0200
@@ -18,4 +18,4 @@
 fi
 
 git log --no-merges --format='%C(auto,green)* %s%C(auto,reset)%n%w(0,2,2)%+b' \
-  --reverse "${previous_tag}..${head}" -- `script/build files`
+  --reverse "${previous_tag}..${head}" -- `script/build files` etc share
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hub-2.12.4/version/version.go 
new/hub-2.12.6/version/version.go
--- old/hub-2.12.4/version/version.go   2019-09-06 23:00:06.000000000 +0200
+++ new/hub-2.12.6/version/version.go   2019-09-21 17:30:41.000000000 +0200
@@ -6,7 +6,7 @@
        "github.com/github/hub/git"
 )
 
-var Version = "2.12.4"
+var Version = "2.12.6"
 
 func FullVersion() (string, error) {
        gitVersion, err := git.Version()


Reply via email to