Commit eda818c
committed
cmd/git(fix[GitNoteCmd]): Propagate custom ref to note commands
why: GitNotesManager stores a custom ref but GitNoteCmd objects
created by ls() ignored it, causing show/remove operations to
always target refs/notes/commits instead of the manager's ref.
what:
- Add ref parameter to GitNoteCmd.__init__
- Pass --ref flag in GitNoteCmd.run() when ref is set
- Update GitNotesManager.ls() to pass ref to GitNoteCmd instances1 parent 1b18d7a commit eda818c
1 file changed
Lines changed: 12 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6975 | 6975 | | |
6976 | 6976 | | |
6977 | 6977 | | |
| 6978 | + | |
6978 | 6979 | | |
6979 | 6980 | | |
6980 | 6981 | | |
| |||
6986 | 6987 | | |
6987 | 6988 | | |
6988 | 6989 | | |
| 6990 | + | |
| 6991 | + | |
6989 | 6992 | | |
6990 | 6993 | | |
6991 | 6994 | | |
| |||
7006 | 7009 | | |
7007 | 7010 | | |
7008 | 7011 | | |
| 7012 | + | |
7009 | 7013 | | |
7010 | 7014 | | |
7011 | 7015 | | |
| |||
7026 | 7030 | | |
7027 | 7031 | | |
7028 | 7032 | | |
| 7033 | + | |
| 7034 | + | |
| 7035 | + | |
| 7036 | + | |
| 7037 | + | |
| 7038 | + | |
7029 | 7039 | | |
7030 | 7040 | | |
7031 | 7041 | | |
7032 | 7042 | | |
7033 | | - | |
| 7043 | + | |
7034 | 7044 | | |
7035 | 7045 | | |
7036 | 7046 | | |
| |||
7554 | 7564 | | |
7555 | 7565 | | |
7556 | 7566 | | |
| 7567 | + | |
7557 | 7568 | | |
7558 | 7569 | | |
7559 | 7570 | | |
| |||
0 commit comments