$ git branch
* bugfix_1000
master
$ git branch -vv
* bugfix_1000 1c51ced [origin/bugfix/fix1000: ahead 2] Merge branch 'master' into bugfix_1000
master 433ecee [origin/master] TREIT-4160 | NCC - Follow Up Fixes
$ git log --oneline bugfix_1000..origin/bugfix/fix1000
$ git log --oneline bugfix_1000 -n 5
1c51ced Merge branch 'master' into bugfix_1000
2184619 xxxxx
7397a4e yyyyy
$ git log --oneline origin/bugfix/fix1000 -n 5
2184619 xxxxx
7397a4e yyyyy
问题>从git branch -vv
开始,我们可以将bugfix_1000提前2.为什么git log --oneline bugfix_1000..origin/bugfix/fix1000
不会显示不同的内容?
谢谢
答案 0 :(得分:3)
修订范围public class DirectedGraph<T>{
protected final int DEFAULT_CAPACITY=15;
protected T[] vertices;
protected double[][] edges;
protected int numVertices;
public DirectedGraph() {
this.vertices = (T[]) (new Object[DEFAULT_CAPACITY]);
this.edges = new double[DEFAULT_CAPACITY][DEFAULT_CAPACITY];
}
public void addVertex(T vertex) {
this.vertices[this.numVertices] = vertex;
this.numVertices++;
}
}
为空,因此bugfix_1000..origin/bugfix/fix1000
不会显示任何内容。修订范围为空,因为git log bugfix_1000..origin/bugfix/fix1000
中没有提交但origin/bugfix/fix1000
中没有提交。 revision range始终指定为bugfix_1000
而不是from..to
。仅显示to..from
但未显示to
中的更改。
TL; DR:修订范围被反转。您可能想要运行from
。