guberm / tortoisegit

Automatically exported from code.google.com/p/tortoisegit
0 stars 0 forks source link

Tortoisegit-->Git show log is not showing full log with history of all commits #2523

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Right Click --> Git Clone
2.Please see the attached image(clone.jpg) for what options have been selected 
while cloning the repository
3.After cloning is done, when I check tortoisegit-->Git show log
4.Git show log displays only first 3 commits 
5. If I clone whole repository instead of a particular branch, I can use full 
log

What is the expected output? What do you see instead?
1. If we do the same operation in SVN, show log lists all the revisions/commits 
happened from the creation of the branch.
2. Tortoise git is failing to do so.

What version of TortoiseGit and msysgit are you using? On
what operating system?
I am using TortoiseGit 1.8.14
and my OS is Windows 7 Enterprise SP 1 64 bit

Please provide any additional information below.
This has been tested on others laptops also in the office. Everyone is getting 
only first few commits (3) but not all the commits happened in that particular 
branch.

How to fix this. Please help. This is needed to know what has actually happened 
in the branch while working on it. 

Original issue reported on code.google.com by learning...@gmail.com on 12 Jun 2015 at 4:50

Attachments:

GoogleCodeExporter commented 9 years ago
See attached file for "Depth" meaning. :)

Original comment by yuelinho...@gmail.com on 12 Jun 2015 at 5:02

GoogleCodeExporter commented 9 years ago
(Forgot to attach. sorry!)

Original comment by yuelinho...@gmail.com on 12 Jun 2015 at 5:03

Attachments:

GoogleCodeExporter commented 9 years ago
That was very quick response. Thanks for your reply. Now, I have unchecked the 
Depth option and also.
1. Checked Recursive
2. Unchecked Recursive  (tried both the scenarios)

In both the scenarios, I could able to see full log. However, it is cloning 
whole repository and checking-out the branch which I specified in the field.
When I selected the option, Git Switch/Checkout inside the cloned branch... I 
could able to see all other branches also which are present in the 
repository... (which I do not want basically, I will be working only a 
particular branch) 

What I am looking for is, I should be able to clone only a single branch but 
with full log ( at the same time, I do not want all other branches to be 
available when checkout/switch option is selected)... 

Many thanks for your answers and help.

Original comment by learning...@gmail.com on 12 Jun 2015 at 5:23

GoogleCodeExporter commented 9 years ago
Suppose we need to discuss...

@csware & @ch3cooli
User wants "--single-branch" option.
Ex: "git clone --branch BRANCH_NAME --single-branch URL"
cf. http://git-scm.com/docs/git-clone

Solution 1:
A fast fix!
Just append it to the tail of line 117 of CloneCommand.cpp

        CString branchStr;
        if (dlg.m_bBranch)
            branchStr = _T(" --branch ") + dlg.m_strBranch + _T(" --single-branch ");

Solution 2:
Add one more checkbox "Single Branch" to Clone dialog.

Original comment by yuelinho...@gmail.com on 12 Jun 2015 at 5:48