[git-users] help me about the branch creation time

2015-09-11 Thread lei yang
Hi experts

I want to know the branch creation time, any help ( I don't have master
branch)

Lei

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[git-users] Test

2015-09-10 Thread lei yang


-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[git-users] how to --since and --until get the expected git log

2015-04-20 Thread lei yang
lyang001@lyang001-OptiPlex-9010:~/stats/gitstats$ git log
--pretty=format:'%ad %an' --date=short --since='2013-1-25'
--until='2013-11-03'
2013-09-22 Alexander Strasser
2013-07-29 Heikki Hokkanen
2012-12-16 Andrey Devyatkin
2013-07-26 Heikki Hokkanen
2013-07-23 Heikki Hokkanen
2013-07-23 Stephen Gordon
2012-08-26 Sven van Haastregt- this is not what I wanted
2013-02-24 Heikki Hokkanen
2013-02-24 Heikki Hokkanen
2013-01-28 Ernesto Jiménez



But I want to get the time only between '2013-1-25'  and '2013-11-03', Is
there a general way to remove them since I have may of this kind of
unexpected results

Lei

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[git-users] two tree alias ?

2014-07-01 Thread lei yang
Hi expert,

I have two tree

git://xx-git.ws.com/git/layers/A (nothing contains,just init)
git://xx-git.ws.com/git/layers/B (lots of content)


for now I want to realize this, when I clone A,it actually clone B?
can we create a alias?

Lei

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [git-users] I don't know how to from rej file to adjust the source

2014-05-17 Thread lei yang
Hi Konstantin,

It's a .ref file, I don't know where the conflict comes from, and how to
adjust the file to remove this conflict, in other words. I don't understand
the rej file mean to me

Lei


On Fri, May 16, 2014 at 6:07 PM, Konstantin Khomoutov 
flatw...@users.sourceforge.net wrote:

 On Fri, 16 May 2014 17:21:10 +0800
 lei yang yanglei.f...@gmail.com wrote:

  #cat recipes-devtools/python/python-heat_git.bb.rej
  diff
 
 a/meta-openstack/recipes-devtools/python/python-heat_git.bbb/meta-openstack/recipes-devtools/python/
  python-heat_git.bb(rejected hunks) @@ -10,6 +10,9 @@ SRCNAME =
  heat SRC_URI =
  git://github.com/openstack/${SRCNAME}.git;branch=stable/havana \
  file://heat.conf \ file://heat.init \
  +   file://autoscaling_example.template \
  +   file://one_vm_example.template \
  +   file://two_vms_example.template \
   
 
   SRCREV=ff6901141fbbc0a13604491aaba01a60487d6f6d

 It's just a patch file in the so-called unified diff format [1].
 To apply it, use the `patch` program.
 If you need to apply it to the work tree of a Git repository,
 use `git apply` (`git am` might also work).

 1. http://en.wikipedia.org/wiki/Diff#Unified_format


-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[git-users] I don't know how to from rej file to adjust the source

2014-05-16 Thread lei yang
#cat recipes-devtools/python/python-heat_git.bb.rej
diff 
a/meta-openstack/recipes-devtools/python/python-heat_git.bbb/meta-openstack/recipes-devtools/python/
python-heat_git.bb(rejected hunks)
@@ -10,6 +10,9 @@ SRCNAME = heat
 SRC_URI = git://github.com/openstack/${SRCNAME}.git;branch=stable/havana \
file://heat.conf \
file://heat.init \
+   file://autoscaling_example.template \
+   file://one_vm_example.template \
+   file://two_vms_example.template \
 

 SRCREV=ff6901141fbbc0a13604491aaba01a60487d6f6d



#cat recipes-devtools/python/python-heat_git.bb
..
PR = r0
SRCNAME = heat

SRC_URI = git://github.com/openstack/${SRCNAME}.git;branch=stable/havana \
   file://heat.conf \
   file://heat.init \


SRCREV=58de9e6415f5bdabde708c8584b21b59b7e96a88
PV=2013.2.3+git${SRCPV}
S = ${WORKDIR}/git
.

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[git-users] Is there a way to know when the commit has been in the git server

2013-10-27 Thread lei yang
Hi expert,

I know form the git log we can now the commit time, but how to know when
it is in the remote
git server

Lei

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[git-users] Re: Is there a way to know when the commit has been in the git server

2013-10-27 Thread lei yang
I mean the real check-in time

Lei



On Mon, Oct 28, 2013 at 11:18 AM, lei yang yanglei.f...@gmail.com wrote:

 Hi expert,

 I know form the git log we can now the commit time, but how to know when
 it is in the remote
 git server

 Lei



-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[git-users] Is there a place record when I run git pull the last time

2013-10-15 Thread lei yang
Hi experts

Is there a place record when I run git pull the last time

Lei

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [git-users] Is there a place record when I run git pull the last time

2013-10-15 Thread lei yang
Thanks, that's what exactly I want

Lei



On Tue, Oct 15, 2013 at 4:47 PM, Benoit Person benoit.per...@gmail.comwrote:

 Hi,

 If I understand correctly what you're asking for, the most reliable
 way is to read the modification date of the .git/FETCH_HEAD file.

 This SW thread has more precisions:

 http://stackoverflow.com/questions/2993902/how-do-i-check-the-date-and-time-of-the-latest-git-pull-that-was-executed

 On 15 October 2013 10:24, lei yang yanglei.f...@gmail.com wrote:
  Hi experts
 
  Is there a place record when I run git pull the last time
 
  Lei
 
  --
  You received this message because you are subscribed to the Google Groups
  Git for human beings group.
  To unsubscribe from this group and stop receiving emails from it, send an
  email to git-users+unsubscr...@googlegroups.com.
  For more options, visit https://groups.google.com/groups/opt_out.



 --
 Benoit Person

 --
 You received this message because you are subscribed to the Google Groups
 Git for human beings group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to git-users+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.


-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[git-users] [git-user] how to know the two commit is the same

2013-06-08 Thread lei yang
Hi expert,

I have two commit in different branch, the commit-id is different, but and
the content is the same, is there a method to prove it's the same use
one-liner

Lei

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[git-users] list all the branch that contains commit title is xxxx yyyy

2013-06-03 Thread lei yang
list all the branch that contains commit title is   note: the
commit-id is not the same though
the commit content is the same in different branch

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[git-users] compare the two branch and only output the content with the changed files

2013-05-25 Thread lei yang
Hi experts,

I know we can use

git log branch1 branch2 --name-status  to get the changed file plus the
commit message

but if I only want to get the changed files, how could i do

Thanks
Lei

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[git-users] recover from hard reset

2013-04-28 Thread lei yang
Hi experts

I commit a change to my local git repos, but I did a git hard --reset
local_commit^, and then my local changes disappeared, how could I
recover my local changes ?

Thanks
Lei

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[git-users] Fwd: question about patchwork

2013-04-10 Thread lei yang
Found the answer:

click the patches, and click Filters to search trace-cmd

to get patchworks' patch, we can download tools pwclient to get the patch
after clicking project info

Lei


On Tue, Apr 9, 2013 at 11:06 AM, lei yang yanglei.f...@gmail.com wrote:

 Hi expert,

 I have a question about find the patch from patchwork

 for example,from google I get

 https://patchwork.kernel.org/patch/1360421/

 but how could I get [2/5] [3/5] 

 any tips

 Lei



-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[git-users] question about patchwork

2013-04-08 Thread lei yang
Hi expert,

I have a question about find the patch from patchwork

for example,from google I get

https://patchwork.kernel.org/patch/1360421/

but how could I get [2/5] [3/5] 

any tips

Lei

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[git-users] git bare clone and pull to latest one

2013-03-25 Thread lei yang
Hi

 I git bare clone linux tree with
git clone git://
git.kernel.org/pub/scm/linux/kernel/git/rt/linux-stable-rt.git

then I can git clone /home/lyang001/trees/linux-stable-rt/inux-stable-rt to
get it

my question if linux-stable-rt.git updates, how could I sync it to the
latest, git pull in the bare clone tree failed here, can you point me the
right steps to use bare clone tree


Lei

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [git-users] git bare clone and pull to latest one

2013-03-25 Thread lei yang
On Tue, Mar 26, 2013 at 1:14 AM, Konstantin Khomoutov 
flatw...@users.sourceforge.net wrote:

 On Tue, 26 Mar 2013 00:12:23 +0800
 lei yang yanglei.f...@gmail.com wrote:

   I git bare clone linux tree with
  git clone git://
  git.kernel.org/pub/scm/linux/kernel/git/rt/linux-stable-rt.git

 It's not bare, unless you passed --bare to `git clone`.


Yes I want I'm missed --bare

Actually, if you intend to host a mirror of that tree (as, it seems, you
 do), you should have used `git clone --mirror` (which implies --bare).


Thanks for the tips


  then I can git
  clone /home/lyang001/trees/linux-stable-rt/inux-stable-rt to get it
 
  my question if linux-stable-rt.git updates, how could I sync it to the
  latest, git pull in the bare clone tree failed here, can you point me
  the right steps to use bare clone tree

 Provided your mirror repository is indeed a mirror (a bare repo will
 all remote refs fetched), the way to update it is

 $ cd /home/lyang001/trees/linux-stable-rt/inux-stable-rt
 $ git fetch +refs/*:refs/*



I will have a try

Lei

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [git-users] How to edit commit messages

2013-03-24 Thread lei yang
On Sun, Mar 24, 2013 at 9:22 PM, Surya kasturisu...@gmail.com wrote:

 The open source community in which I am contributing has certain standards
 on writing commit messages I didn't knew earlier.

 They want me to edit commit message according to standards.. So, how to
 edit commit messages?



git commit --amend for the top commit to edit the commit

git rebase -i sha1 to  edit all the commit message from sha1


Lei


  --
 You received this message because you are subscribed to the Google Groups
 Git for human beings group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to git-users+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[git-users] commit ee50e135aeb048b90fab662e661c58b67341830b upstream, how is the message produced

2013-03-22 Thread lei yang
Hi experts,

I don't know how the upstream info produced, it seems not get with git
cherry-pick -x sha1 can you point me


commit 83829ab554f01ee5fcef4880b0a90cc14350b936
Author: Olivier Sobrie oliv...@sobrie.be
Date:   Fri Jan 18 09:32:41 2013 +0100

can: pch_can: fix invalid error codes

commit ee50e135aeb048b90fab662e661c58b67341830b upstream.

Errors in CAN protocol (location) are reported in data[3] of the can
frame instead of data[2].

Signed-off-by: Olivier Sobrie oliv...@sobrie.be
Signed-off-by: Marc Kleine-Budde m...@pengutronix.de
Signed-off-by: Greg Kroah-Hartman gre...@linuxfoundation.org


Lei

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [git-users] help, why the same commit in one branch

2013-03-21 Thread lei yang
On Thu, Mar 21, 2013 at 1:47 AM, Dale R. Worley wor...@alum.mit.edu wrote:

  From: lei yang yanglei.f...@gmail.com
 
  I git clone git://
  git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
 
  find v3.7-rc1 has two same commit ,can some one give me a detailed
  explanation ?

 I see that two different commits, 33e1af... and efda0a... have very
 similar commit comments, the same Author, and the same Date.  But one
 includes the line Acked-by: Amit Shah amit.s...@redhat.com.  I
 suspect that the two commits have very different changes to the file
 base.  Perhaps one is intended to be an amendment to the other?  One
 documents a verification of the other?


The have the same contents.

Lei





 Dale

  lyang001@lyang001-OptiPlex-9010:~/trees/linux-stable$ git log v3.7-rc1
  -G
  registering virtio driver
  commit 33e1afc3d82697599ccc8dc8f2fa445ae329
  Author: Alexey Khoroshilov khoroshi...@ispras.ru
  Date:   Sat Sep 1 23:49:37 2012 +0400
 
  virtio: console: fix error handling in init() function
 
  If register_virtio_driver() fails, virtio-ports class is not
 destroyed.
  The patch adds error handling of register_virtio_driver().
 
  Found by Linux Driver Verification project (linuxtesting.org).
 
  Signed-off-by: Alexey Khoroshilov khoroshi...@ispras.ru
  Acked-by: Amit Shah amit.s...@redhat.com
  Signed-off-by: Rusty Russell ru...@rustcorp.com.au
 
  commit efda0ad4aa92439d9244d77a13339e23df5e1dc1
  Author: Alexey Khoroshilov khoroshi...@ispras.ru
  Date:   Sat Sep 1 23:49:37 2012 +0400
 
  virtio: console: fix error handling in init() function
 
  If register_virtio_driver() fails, virtio-ports class is not
 destroyed.
  The patch adds error handling of register_virtio_driver().
 
  Found by Linux Driver Verification project (linuxtesting.org).
 
  Signed-off-by: Alexey Khoroshilov khoroshi...@ispras.ru
  Signed-off-by: Greg Kroah-Hartman gre...@linuxfoundation.org

 --
 You received this message because you are subscribed to the Google Groups
 Git for human beings group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to git-users+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [git-users] help, why the same commit in one branch

2013-03-21 Thread lei yang
On Thu, Mar 21, 2013 at 9:40 PM, Dale R. Worley wor...@alum.mit.edu wrote:

  From: lei yang yanglei.f...@gmail.com
 
  The have the same contents.

 Meaning that the older commit causes significant changes to the files
 and the newer commit causes no changes to the files.  So someone made
 a second commit that changed nothing but provided a slightly different
 commit message.



I git show second commit id , it does change code, and the same as the
first


Lei


 Dale

 Dale Worley
 --
 The French are not against arrogance per se, but in the case of the
 United States they regard the arrogance as completely unjustified.
 -- What's So Great About America by Dinesh D'Souza

 --
 You received this message because you are subscribed to the Google Groups
 Git for human beings group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to git-users+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [git-users] Re: question: how to know from a commit id to know it's merged by which commit id

2013-03-21 Thread lei yang
On Wed, Mar 20, 2013 at 7:55 PM, Thomas Ferris Nicolaisen
tfn...@gmail.comwrote:

 On Wednesday, March 20, 2013 11:34:50 AM UTC+1, lei yang wrote:

 Hi experts

 I think I should have asked this question, but I can't find it know the
 question is

 I have a commit id A in tree, how could I know this commit is merged by
 which commit



 First google result for find merge commit:
 http://stackoverflow.com/questions/8475448/find-merge-commit-which-include-a-specific-commit




Thanks it works for me, another question is
if I know the merge commit id A, can i get the list for the commit it
merged by A?

Lei




  --
 You received this message because you are subscribed to the Google Groups
 Git for human beings group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to git-users+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[git-users] question: how to know from a commit id to know it's merged by which commit id

2013-03-20 Thread lei yang
Hi experts

I think I should have asked this question, but I can't find it know the
question is

I have a commit id A in tree, how could I know this commit is merged by
which commit


Lei

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [git-users] from the commit message to get its in which branch or tag

2013-03-18 Thread lei yang
On Mon, Mar 18, 2013 at 6:03 AM, Johan 't Hart jopi...@gmail.com wrote:

 Wasnt there something like patch-id you can use in this case?





[lyang0@ala-lpd-test1 linux]$ git format-patch
c51a3d140bb726a662a867a2ae4098cc311347d7^..c51a3d140bb726a662a867a2ae4098cc311347d7
-o /tmp//tmp/0001-x86-mce-Do-not-change-worker-s-running-cpu-in-cmci_r.patch
[lyang0@ala-lpd-test1 linux]$ git patch-id 
/tmp/0001-x86-mce-Do-not-change-worker-s-running-cpu-in-cmci_r.patche1f299654737b34f4ec6b03abdcb416cbc81b1d0
85b97637bb40a9f486459dd254598759af9c3d50
and why it gets two patch-id
It doesn't  get below commit id, which is  the same patch too
commit c51a3d140bb726a662a867a2ae4098cc311347d7Author: Tang Chen
tangc...@cn.fujitsu.comDate:   Mon Oct 29 11:01:50 2012 +0800
x86/mce: Do not change worker's running cpu in cmci_rediscover().
  commit 85b97637bb40a9f486459dd254598759af9c3d50 upstream



Is there a way to search a branch for a commit with a certain patch id?


git branch --contains id




 --
 You received this message because you are subscribed to the Google Groups
 Git for human beings group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to git-users+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [git-users] from the commit message to get its in which branch or tag

2013-03-18 Thread lei yang
On Tue, Mar 19, 2013 at 6:08 AM, Johan 't Hart jopi...@gmail.com wrote:



 On Monday, March 18, 2013 4:40:55 PM UTC+1, lei yang wrote:



 On Mon, Mar 18, 2013 at 6:03 AM, Johan 't Hart jop...@gmail.com wrote:

 Wasnt there something like patch-id you can use in this case?




 Is there a way to search a branch for a commit with a certain patch id?


 git branch --contains id


 Documentation of git-branch states:
 --contains [commit]

 Only list branches which contain the specified commit (HEAD if not
 specified).


 So that sounds to me that this command will list all branches that contain
 a specified commit ID, note: not a patch ID.
 Should this also work with patch-ID's?



NOT work, because the commit-id maybe different, and patch-id can't be used
here

Lei









 --
 You received this message because you are subscribed to the Google
 Groups Git for human beings group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to git-users+...@**googlegroups.com.

 For more options, visit 
 https://groups.google.com/**groups/opt_outhttps://groups.google.com/groups/opt_out
 .



  --
 You received this message because you are subscribed to the Google Groups
 Git for human beings group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to git-users+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[git-users] from the commit message to get its in which branch or tag

2013-03-17 Thread lei yang
Hi experts,

commit bd01370ca2aabc4d683a3b8e04817ee3bc97ad0b
Author: Paul Eggleton paul.eggle...@linux.intel.com
Date:   Tue Sep 25 15:58:32 2012 +0100

layer.conf: allow other layers to depend on this version

Set LAYERVERSION and rename the collection to core. Given changes such
as the tabs to spaces cleanup for python functions in the current
version, this allows other layers to depend on this version of OE-Core
specifically should they choose to do so, by specifying the following
in their own layer.conf:


I want to know from  allow other layers to depend on this version, can we
get this patch is in which tag or branch?  since commit id maybe different,
so I don't want to
get this from commit id

Lei

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[git-users] create a new branch with the contents from current branch's dir

2013-03-11 Thread lei yang
Hi experts,

Branch A content is
lyang001@lyang001-OptiPlex-9010:~/meta-networking$ ls
 README  recipes-connectivity  recipes-daemons  recipes-filter
recipes-protocols  recipes-support  sub.sh  xx.sh


I want to create a new branch named support and make it contain
recipes-support (recipes-support is a directory and  contains lots of
file )

eg:

the support branch should be like below
lyang001@lyang001-OptiPlex-9010:~/meta-networking$ ls
recipes-support

Thanks
Lei

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[git-users] how to create a new empty branch

2013-03-01 Thread lei yang
Hi experts,

how to create a new empty branch, any command?

Thanks
Lei

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[git-users] To know the string in which branch

2013-02-20 Thread lei yang
Hi expert,

Is there a git command to know string foo contains in which branch?

Lei

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[git-users] when or which commit delete this file

2013-01-31 Thread lei yang
Hi experts,

I have a file named foo.c, which is in tree, not I find it's removed, how
could I which commit delete it ?


Lei

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [git-users] Re: acked by ,test by, how to add them. automatically? and what does it mean

2013-01-27 Thread lei yang
On Sun, Jan 27, 2013 at 4:38 PM, milki nitesha...@gmail.com wrote:
 On Thursday, January 24, 2013 8:40:20 AM UTC-8, lei yang wrote:

 I know git commit -s can add my self with signed off by me but how
 to get acked by and tested by?


 Many workflow tools will automatically add these lines. You can either use
 those tools (usually code review software) or use git hooks
 (prepare-commit-msg maybe) to add those lines.


what's code review software, I should google it by which key word.

prepare-commit-msg works for me, it seems if I create a new repos, I
have to re-modify the .git/.hooks/prepare-commit-msg, not very good

Lei



 -milki

 --



-- 




[git-users] acked by ,test by, how to add them. automatically? and what does it mean

2013-01-24 Thread lei yang
Hie experts,

see below commit:

commit abb959f8a3f125a6e6641abbd020111516dfc8f6
Author: Javi Merino javi.mer...@arm.com
Date:   Fri Dec 16 16:04:36 2011 +0100

ARM: 7237/1: PL330: Fix driver freeze

Add a req_running field to the pl330_thread to track which request (if
any) has been submitted to the DMA.  This mechanism replaces the old
one in which we tried to guess the same by looking at the PC of the
DMA, which could prevent the driver from sending more requests if it
didn't guess correctly.

Reference: 1323631637-9610-1-git-send-email-javi.mer...@arm.com

Signed-off-by: Javi Merino javi.mer...@arm.com
Acked-by: Jassi Brar jaswinder.si...@linaro.org
Tested-by: Tushar Behera tushar.beh...@linaro.org
Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk


I know git commit -s can add my self with signed off by me but how
to get acked by and tested by?


other 2 questions:

1) what does mean acked by?

2) what's the different for the first signed off with the last signed-off


Lei

-- 




Re: [git-users] add the code file by other write,and keep others know it's written by him in commit log

2013-01-24 Thread lei yang
On Fri, Jan 25, 2013 at 12:46 AM, Konstantin Khomoutov
flatw...@users.sourceforge.net wrote:
 On Fri, 25 Jan 2013 00:36:02 +0800
 lei yang yanglei.f...@gmail.com wrote:

 if want to add foo.c to my git repos ,I want to keep others know foo.c
 is written by phil, and better to leave the origin commit message.how
 could I do?

 I'm not sure I was able to parse the question correctly, but it seems
 you want to commit a file authored by someone else.

 For this very reason Git distinguishes between the committer -- a
 person who actually recorded a commit -- and the author -- a person who
 authored the change.  Typically these fields are the same in a commit,
 but they might differ, for instance, when importing the changes from
 patch files, and you might specify the author when doing `git commit`
 by supplying it the --author=... command-line option.

 note: I can't use format-patch, because they have different path for
 this file.

 A patch is just a text file -- you are free to change paths in its
 hunks using a text editor.


Thanks --author works for me,

 if I use git am xx.patch with your method to change the path, it
can't add sign-off by me, what
I mean: I want to let other know this patch is phil write, and
integrate by me to my git repos

Lei

-- 




[git-users] which commit ever change FULL_OPTIMIZATION in this file

2013-01-21 Thread lei yang
Hi experts,

lyang001@lyang0-9010:~/kvm_32/layers/oe-core$ git blame -c
meta/conf/bitbake.conf
9cb71137 meta/conf/bitbake.conf (Khem Raj
2011-03-17 16:54:30 -0700 524) FULL_OPTIMIZATION = -O2 -pipe
${DEBUG_FLAGS}

lyang001@lyang0-9010:~/kvm_32/layers/oe-core$ git show 9cb71137
commit 9cb7113790d716a4c5cf7d511535ba87fdecd1ac
Author: Khem Raj raj.k...@gmail.com
Date:   Thu Mar 17 16:54:30 2011 -0700
..
 ##
 # Optimization flags.
 ##
-
-FULL_OPTIMIZATION = -fexpensive-optimizations -fomit-frame-pointer
-frename-registers -O2 -ggdb -feliminate-unused-debug-types
-DEBUG_OPTIMIZATION = -O -fno-omit-frame-pointer -g
+DEBUG_FLAGS ?= -g -feliminate-unused-debug-types -feliminate-dwarf2-dups
+FULL_OPTIMIZATION = -O2 -pipe ${DEBUG_FLAGS}
+DEBUG_OPTIMIZATION = -O -fno-omit-frame-pointer ${DEBUG_FLAGS} -pipe
 SELECTED_OPTIMIZATION = ${@bb.data.getVar(['FULL_OPTIMIZATION',
'DEBUG_OPTIMIZATION'][bb.data.getVar('DEBUG_BUILD', d, 1) == '1'], d,
1)}
-BUILD_OPTIMIZATION = -O2
+BUILD_OPTIMIZATION = -O2 -pipe



git blame tells me 9cb71137  ever change it .but it doesn't all the
commit that change it ever, an help

-- 




Re: [git-users] which commit ever change FULL_OPTIMIZATION in this file

2013-01-21 Thread lei yang
seems not work for me

lyang001@lyang0-9010:~/kvm_32/layers/oe-core$ git blame
meta/conf/bitbake.conf |grep FULL_OPTIMIZATION
9cb71137 meta/conf/bitbake.conf (Khem Raj
2011-03-17 16:54:30 -0700 524) FULL_OPTIMIZATION = -O2 -pipe
${DEBUG_FLAGS}
2864ff6a meta/conf/bitbake.conf (Richard Purdie
2011-11-25 14:25:16 + 526) SELECTED_OPTIMIZATION =
${@d.getVar(['FULL_OPTIMIZATION',
'DEBUG_OPTIMIZATION'][d.getVar('DEBUG_BUILD', True) == '1'], True)}
5b9877aa meta/conf/bitbake.conf (Chris Larson
2011-11-16 14:17:21 -0700 527) SELECTED_OPTIMIZATION[vardeps] +=
FULL_OPTIMIZATION DEBUG_OPTIMIZATION
lyang001@lyang0-9010:~/kvm_32/layers/oe-core$ git log -F
-SFULL_OPTIMIZATION -- meta/conf/bitbake.conf |grep 9cb71137
lyang001@lyang0-9010:~/kvm_32/layers/oe-core$

 it can't get 9cb71137

Lei


On Tue, Jan 22, 2013 at 1:26 AM, Konstantin Khomoutov
flatw...@users.sourceforge.net wrote:
 FULL_OPTIMIZATION

-- 




[git-users] help, about git send email seting

2013-01-18 Thread lei yang
When I use git send-email I aways get below confirmation info

Who should the emails appear to be from? [Lei Yang yanglei.f...@gmail.com]
Emails will be sent from: Lei Yang yanglei.f...@gmail.com
Message-ID to be used as In-Reply-To for the first email?

before, I don't get this confirmation
now I use I newly installed os to use new installed git, any setting for this ?

Thanks
Lei

-- 




[git-users] it's not safe to set password wtih git config, can we not set it,

2013-01-18 Thread lei yang
git config --global sendemail.smtppass   this will display
password in .git config

can we avoid this ?

lei

-- 




Re: [git-users] it's not safe to set password wtih git config, can we not set it,

2013-01-18 Thread lei yang
On Sat, Jan 19, 2013 at 1:00 AM, Konstantin Khomoutov
flatw...@users.sourceforge.net wrote:
 On Sat, 19 Jan 2013 00:37:20 +0800
 lei yang yanglei.f...@gmail.com wrote:

 git config --global sendemail.smtppass   this will display
 password in .git config

 can we avoid this ?

 Yes, do not keep passwords in your configuration files.

but if we don't put it in the configuration file, it will let me input
it, that's not a easy life, how do you do that

Lei

-- 




[git-users] Does git request-pull and git send-email to combine ?

2013-01-18 Thread lei yang
Hi experts

I want send a pull request following the patches email, is it possible?

Lei

-- 




[git-users] git request-pull? how to

2013-01-15 Thread lei yang


-- 




[git-users] git request-pull? how to?

2013-01-15 Thread lei yang
Hi experts

I always see something like
http://comments.gmane.org/gmane.linux.drivers.video-input-infrastructure/54774

Then it follows patches, I don't know how to get the first one, which
is not code changes but some info like changes since vx, and then
list the
modified files

I also see something like https://lkml.org/lkml/2012/9/10/158, I'm not
sure they get it use the same way

can you give me an examples, it likes a git request-pull or something else?


Lei

-- 




Re: [git-users] git request-pull? how to?

2013-01-15 Thread lei yang
On Tue, Jan 15, 2013 at 5:33 AM, Konstantin Khomoutov
flatw...@users.sourceforge.net wrote:
 On Tue, 15 Jan 2013 19:30:04 +0800
 lei yang yanglei.f...@gmail.com wrote:

 I always see something like
 http://comments.gmane.org/gmane.linux.drivers.video-input-infrastructure/54774

 Looks like the result of `git format-patch` with the --cover-letter
 command-line argument used.


Thanks, then I googled,  I use
git send-email -3 --annotate --cover-letter --to yanglei.f...@gmail.com
then it tell me edit the letter, then I edit it, and save it tells me
4 more files to edit, not sure this is a reminder or error?
and then Ipress enter and save it, it will send the mail

another two question:
1)does mantainer know the first letter will not merge as patch?
2)I don't know how to get below in https://lkml.org/lkml/2012/9/10/158

The following changes since commit fea7a08acb13524b47711625eebea40a0ede69a0:

  Linux 3.6-rc3 (2012-08-22 13:29:06 -0700)

are available in the git repository at:

-- 




[git-users] git send-email with space help

2013-01-06 Thread lei yang
 git send-email -2 --to lei.y...@windriver.com
--subject-prefix=meta-networking][PATCH:V2 works

results: subject is : [meta-networking][PATCH:V2 1/2] Removing README
from libvirt and qemu dirs

but I want   [meta-networking][PATCH V2 1/2] Removing README from
libvirt and qemu dirs

 git send-email -2 --to lei.y...@windriver.com
--subject-prefix=meta-networking][PATCH V2  --- doesn't work with
spaceV2

But I did see someone's patch in the email subject has a space how it used ?

Lei

-- 




Re: [git-users] git config fetch.recurseSubmodules true git pull doesn't update the submodule

2012-12-26 Thread lei yang
On Wed, Dec 26, 2012 at 8:57 PM, Konstantin Khomoutov
flatw...@users.sourceforge.net wrote:
 On Wed, 26 Dec 2012 12:49:43 +0800
 lei yang yanglei.f...@gmail.com wrote:

 I want others when they git pull it also update the submoudles .but
 below two ways don't work for me

 1)
 git config fetch.recurseSubmodules true  git pull

 2)
 git config alias.pullall '!git pull  git submodule update --init
 --recursive'  it works with git pullall
 but I don't know how let it work with git pull
 git config alias.pull '!git pull  git submodule update --init
 --recursive'  --- by remove all it doesn't work

 I don't know for sure, but it seems Git aliases do not override
 built-in commands, and I think this is an obviously right thing.
 I see no problem with using `git pullall` to do what you need instead
 of trying to *override* the default.  If pullall is too long-winded
 for you, make it pa instead.


Thanks for the reply.Good question

Because I want to put a submodule in tree, but others may NOT know
this, they often do git pull  to update.
and don't know it has a submodule there. I don't want to introduce trouble

Lei

-- 




Re: [git-users] git config fetch.recurseSubmodules true git pull doesn't update the submodule

2012-12-26 Thread lei yang
On Wed, Dec 26, 2012 at 4:57 AM, Konstantin Khomoutov
flatw...@users.sourceforge.net wrote:
 On Wed, 26 Dec 2012 12:49:43 +0800
 lei yang yanglei.f...@gmail.com wrote:

 I want others when they git pull it also update the submoudles .but
 below two ways don't work for me

 1)
 git config fetch.recurseSubmodules true  git pull

 2)
 git config alias.pullall '!git pull  git submodule update --init
 --recursive'  it works with git pullall
 but I don't know how let it work with git pull
 git config alias.pull '!git pull  git submodule update --init
 --recursive'  --- by remove all it doesn't work

 I don't know for sure, but it seems Git aliases do not override
 built-in commands, and I think this is an obviously right thing.
 I see no problem with using `git pullall` to do what you need instead
 of trying to *override* the default.  If pullall is too long-winded
 for you, make it pa instead.

Thanks for the reply.Good question

Because I want to put a submodule in tree, but others may NOT know
this, they often do git pull  to update.
and don't know it has a submodule there. I don't want to introduce trouble

Lei

-- 




[git-users] git config fetch.recurseSubmodules true git pull doesn't update the submodule

2012-12-25 Thread lei yang
Hi expert,

I want others when they git pull it also update the submoudles .but
below two ways don't work for me

1)
git config fetch.recurseSubmodules true  git pull

2)
git config alias.pullall '!git pull  git submodule update --init
--recursive'  it works with git pullall
but I don't know how let it work with git pull
git config alias.pull '!git pull  git submodule update --init
--recursive'  --- by remove all it doesn't work

Thanks
Lei

-- 




Re: [git-users] Re: Is it possible cp some file from one branch to another without switch branch

2012-12-18 Thread lei yang
Thanks very much! it works for me

Lei


On Mon, Dec 17, 2012 at 5:23 AM, Thomas Ferris Nicolaisen
tfn...@gmail.com wrote:
 On Monday, December 17, 2012 1:58:53 PM UTC+1, lei yang wrote:

 Hi expert,

 now I'm in the branch A, I want to copy some file from branch B to A

 any help?


 You have to commit changes in the current branch, so you have to switch
 first to the branch where you want to add and commit the file, check out the
 file from the other branch, and then commit it:

 #initial check in of the file in branch B:
 git checkout B
 git add some-file.txt
 git commit -m Added some file

 Now copy the file over to branch A:

 git checkout A
 git checkout B some-file.txt
 git status
 # On branch A
 # Changes to be committed:
 #   (use git reset HEAD file... to unstage)
 #
 # new file:   some-file.txt
 #

 --



-- 




[git-users] Is it possible cp some file from one branch to another without switch branch

2012-12-17 Thread lei yang
Hi expert,

now I'm in the branch A, I want to copy some file from branch B to A

any help?

Lei

-- 




Re: [git-users] Is it possible cp some file from one branch to another without switch branch

2012-12-17 Thread lei yang
Thanks for the tips, I have another question, If I forget branch B
files' path, how chould I do without switch to B

Lei

On Mon, Dec 17, 2012 at 6:18 AM, Konstantin Khomoutov
flatw...@users.sourceforge.net wrote:
 On Mon, 17 Dec 2012 04:58:53 -0800
 lei yang yanglei.f...@gmail.com wrote:

 now I'm in the branch A, I want to copy some file from branch B to A

 any help?

 Note that the already proposed

 git checkout $branch -- $filename
 git add $filename

 approach does not copy the file's history recorded in branch -- you
 only get the file's contents.
 In general, it's impossible to copy a file from one branch to another,
 preserving its history.

 Also note that if you want to save the file's contents into a
 differently named file, you should use another approach:

 git show $branch:$filename  $newfilename

-- 




Re: [git-users] Digest for git-users@googlegroups.com - 4 Messages in 1 Topic

2012-12-10 Thread lei yang
On Tue, Dec 11, 2012 at 10:02 AM, King Jin jinking.t...@gmail.com wrote:
 git submodule might be the one you are looking for.

 $git clone git://github.com/lei/B.git B
 $cd B
 $git submodule add git://github.com/lei/A.git kvm
 $git submodule update


Thanks it works for me, and if I do a 'git push', and then clone it to local
and git pull, does it update the kvm part if kvm part has update?

Lei

 anyone else cloned your repo B, just run `git submodule update` (exclude `)
 will get the commit history of repo A by changing current working directory
 to kvm and run git log.

 On Tue, Dec 11, 2012 at 8:49 AM, git-users@googlegroups.com wrote:

   Today's Topic Summary

 Group: http://groups.google.com/group/git-users/topics

 git help about git merge to a specific dir and keep the commit log [4
 Updates]

  git help about git merge to a specific dir and keep the commit log

 lei yang yanglei.f...@gmail.com Dec 10 04:35PM +0800

 Hi experts,

 I have two tree A and B,
 A: git://github.com/lei/A.git
 B: git://github.com/lei/B.git

 B is like
 [lyang0@ubuntu B]$ ls
 benchmark box-opening kvm

 I want merge A tree to B,
 1) put A's content to the kvm directory of B
 2)I want to keep all the A's commit log(history) into B's tree

 can you give me some instruction? Thanks

 Lei



 John McKown john.archie.mck...@gmail.com Dec 10 06:42AM -0800

 I think this is similar to what I gave to a post a couple of days ago. You
 might try the following on your local machine. I will show the commands
 that I would enter in a Linux BASH shell. I don't do Windows or MacOSX,
 but
 you seem to be on Ubuntu.. First, I would clone the B repository into a
 local working directory. I would then clone A into a different local
 working directory. Of course, double check the results of all the commands
 after doing them and stop if something goes wrong. I have not redone them
 myself to remind myself exactly what to do. It's why I'm showing doing
 this
 into new subdirectories. Make sure the new B working directory is good
 before pushing to github!

 cd ~/some-subdir #go someplace to make the new A and B working directories
 git clone git://github.com/lei/A.git
 git clone git://github.com/lei/B.git
 cd A
 git checkout -b kvm #make a new branch in A
 mkdir kvm #make a kvm directory for A
 git mv * kvm #move everything into it
 git commit -m 'move to kvm subdirectory for copy to B' #Needed???
 cd ../B #go to the B subdirectory
 git remote add temp ../A/.git #make A's .git directory a remote here
 git merge --no-commit temp kvm #merge in A's kvm branch
 git commit -m 'Copy all of kvm from project A'
 git remote rm temp #remove that temp repository
 git push #update github.

 I think that is fairly close to what you may need. Perhaps one of the true
 old, wise ones (I'm an old, not-so-wise one) will also give you some
 pointers.

 On Monday, December 10, 2012 2:35:58 AM UTC-6, lei yang wrote:



 John McKown john.archie.mck...@gmail.com Dec 10 08:12AM -0800

 possible mini bug, instead of:

 git mv * kvm

 use

 git mv \* kvm

 The \ in front of the * tells git to expand the file names instead of
 having the shell do it. My mistake.

 On Monday, December 10, 2012 2:35:58 AM UTC-6, lei yang wrote:



 Konstantin Khomoutov flatw...@users.sourceforge.net Dec 10 08:30PM +0400

 On Mon, 10 Dec 2012 16:35:58 +0800
  1) put A's content to the kvm directory of B
  2)I want to keep all the A's commit log(history) into B's tree

  can you give me some instruction? Thanks

 This is what the add commmand of git-subtree [1] does.
 Note that since 1.7.11, this script is included in Git, in its
 contrib directory, so it's callable from there.

 1. https://github.com/apenwarr/git-subtree



 You received this message because you are subscribed to the Google Group
 git-users.
 You can post via email.
 To unsubscribe from this group, send an empty message.
 For more options, visit this group.

 --




 --



-- 




Re: [git-users] Re: git help about git merge to a specific dir and keep the commit log

2012-12-10 Thread lei yang
Thanks it works for me, It maybe mv kvm: itself to kvm dir, anyway
you instruction perform well for me
thanks again and I will try git mv \* kvm

Lei


On Tue, Dec 11, 2012 at 12:12 AM, John McKown
john.archie.mck...@gmail.com wrote:
 possible mini bug, instead of:

 git mv * kvm

 use

 git mv \* kvm

 The \ in front of the * tells git to expand the file names instead of having
 the shell do it. My mistake.


 On Monday, December 10, 2012 2:35:58 AM UTC-6, lei yang wrote:

 Hi experts,

 I have two tree A and B,
 A: git://github.com/lei/A.git
 B: git://github.com/lei/B.git

 B is like
 [lyang0@ubuntu B]$ ls
 benchmark  box-opening  kvm

 I want merge A tree to B,
 1) put A's content to the kvm directory of B
 2)I want to keep all the A's commit log(history) into B's tree

 can you give me some instruction?  Thanks

 Lei

 --



-- 




[git-users] ls it possible to change the commit info

2012-12-10 Thread lei yang
HI experts

my git log is something like
#git log




commit a83052d1f102341bb5931955658266882d7b8953
Author: Lei Yang yanglei.f...@gmail.com
Date:   Tue Dec 11 13:36:45 2012 +0800

add testfileA2.add

commit b8558af3986384e657bfdbc48154830395b340c6
Author: Lei Yang yanglei.f...@gmail.com
Date:   Tue Dec 11 13:30:10 2012 +0800

rm testfileA1.add

commit ad9d46d348542bb4b7d8d09fbe6b4a6548cb68ff
Merge: acaa35d aaa479a
Author: Lei Yang yanglei.f...@gmail.com
Date:   Tue Dec 11 13:37:01 2012 +0800

Merge branch 'master' of github.com:leiyang/git_testA


I find rm testfileA1.add is wrong, I want to change it to add
testfileA1.add, and DON'T leave rm testfileA1.add info in the
commit log
Is it possible?

Lei

-- 




[git-users] about git commit -m add the more than two lines log

2012-10-11 Thread lei yang
I know git commit -m somethingsomething will give the git info in the git log

but I don't know how to write some thing with more than two line some
thing like

something something
something something
something something

in the git log

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



Re: [git-users] how to git format patch without swith to that branch

2012-07-24 Thread lei yang
On Tue, Jul 24, 2012 at 7:53 PM, Thomas Ferris Nicolaisen
tfn...@gmail.com wrote:
 On Tuesday, July 24, 2012 7:05:14 AM UTC+2, lei yang wrote:

 how to?


 If you want to format-patch for example the last two commits on branch B,
 this should do it:

 git format-patch B~2..B



Yes I know this, but I don't know how to fromat it with commit without
switching to B

eg: git format-patch commit1..commit2,

but How could I could I format branch B's?


 The dot-dot (..) notation specifies a range from B-minus-two to B-head.

 --
 You received this message because you are subscribed to the Google Groups
 Git for human beings group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/git-users/-/T-UD6NjibKEJ.
 To post to this group, send email to git-users@googlegroups.com.
 To unsubscribe from this group, send email to
 git-users+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/git-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



[git-users] how to git format patch without swith to that branch

2012-07-23 Thread lei yang
Hi

I want to format patch from branch A, but current branch is B, is it
possible to format patch without switching to B?

Lei

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



Re: [git-users] Re: The commit share

2012-07-07 Thread lei yang
I think I should reprase my question in another thread, the quesion is
more complicated now

Lei


On 7/6/12, Thomas Ferris Nicolaisen tfn...@gmail.com wrote:
 Hi,

 Could you explain what you mean with *the shared commit id since the
 commitid1 for the two branch*? Perhaps provide an example?

 On Friday, July 6, 2012 2:39:44 PM UTC+2, lei yang wrote:

  Hi expert,

 With git merge-base I get the commitid1 for the merge base . How could I
 get the shared commit id since the commitid1 for the two branch?

 Thanks
 Lei


 --
 You received this message because you are subscribed to the Google Groups
 Git for human beings group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/git-users/-/ZxRa-Ga7v_cJ.
 To post to this group, send email to git-users@googlegroups.com.
 To unsubscribe from this group, send email to
 git-users+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/git-users?hl=en.



-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



[git-users] from the commit titles to get the commit ids

2012-07-07 Thread lei yang
Hi experts

I have a file which comtains commit title

#cat file
Revert eglibc: fix perl path in target scripts on fedora 17
eglibc: fix perl path in target scripts on fedora 17 alpha  
eglibc: fix re-execution of task

how could I change the title to the commit id lists?

Thanks
Lei

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



[git-users] How to add the branch from another tree to my local branch

2012-07-06 Thread lei yang
As the title, thanks in advance

Lei

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



[git-users] The commit share

2012-07-06 Thread lei yang
 Hi expert,

With git merge-base I get the commitid1 for the merge base . How could I
get the shared commit id since the commitid1 for the two branch?

Thanks
Lei

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



[git-users] Re: The commit share

2012-07-06 Thread lei yang
I'm on the train with my phone,tomrrow I would give you example.

On Friday, July 6, 2012, Thomas Ferris Nicolaisen wrote:

 Hi,

 Could you explain what you mean with *the shared commit id since the
 commitid1 for the two branch*? Perhaps provide an example?

 On Friday, July 6, 2012 2:39:44 PM UTC+2, lei yang wrote:

  Hi expert,

 With git merge-base I get the commitid1 for the merge base . How could I
 get the shared commit id since the commitid1 for the two branch?

 Thanks
 Lei

  --
 You received this message because you are subscribed to the Google Groups
 Git for human beings group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/git-users/-/ZxRa-Ga7v_cJ.
 To post to this group, send email to 
 git-users@googlegroups.comjavascript:_e({}, 'cvml', 
 'git-users@googlegroups.com');
 .
 To unsubscribe from this group, send email to
 git-users+unsubscr...@googlegroups.com javascript:_e({}, 'cvml',
 'git-users%2bunsubscr...@googlegroups.com');.
 For more options, visit this group at
 http://groups.google.com/group/git-users?hl=en.


-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



[git-users] How to see the which file changead between two commit and plus with commit id

2012-06-16 Thread lei yang
Hello

I know below command can get which file changed between the two commit
lyang0@lyang0-OptiPlex-755:~/git/kernel-3.4.x$ git diff --name-only
16d815fd230b81d49d395e91b084f0731ea6e4a2^..3e5f29bd22e597d66d9c1013a0ab190e6b48a8ba
drivers/i2c/busses/i2c-davinci.c
drivers/i2c/busses/i2c-tegra.c

can we show the info with which commit changed the file ?

Thanks
Lei

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



Re: [git-users] Re: how to get the formated patches from the merge id

2012-06-15 Thread lei yang
On Fri, Jun 15, 2012 at 7:59 PM, Vincent van Ravesteijn v...@lyx.org wrote:
 Op 15-6-2012 13:46, lei yang schreef:

 Hi

 I mean,

 I have a commit like below
 commit 0e93b4b304ae052ba1bc73f6d34a68556fe93429
 Merge: b724cc1 51bfd29

 This commit done this work: merge b724cc1..51bfd29 commit,

 The question is how could I *onlys* through
 0e93b4b304ae052ba1bc73f6d34a68556fe93429 to get the formated patch for
 the
 commit(b724cc1..51bfd29)


 It is still not clear what you want to accomplish.

 Your proposal: git format-patch b724cc1..51bfd29 only gives you the
 commits that were in the branch 51bfd29 that weren't yet in the branch
 b724cc1. This just reflect the commits of one of the branches, but not the
 work done by the merge commit.



but,git format-patch b724cc1..51bfd29 do the same work as what you
said git format-patch 0e93b4b3^1..0e93b4b3^2
so this do the same thing, formated patch which merged, can you give a
try to explain it in your workspace. and I don't understand what you
said branch 51bfd29,51bfd29 is not the branch

Thanks for your help,git format-patch 0e93b4b3^1..0e93b4b3^2 is what I need.

Lei





 If this is really what you want you can do:

 $ git format-patch 0e93b4b3^1..0e93b4b3^2

 0e93b4b3^1 means the first parent of 0e93b4b3, which is b724cc1. 0e93b4b3^2
 means the second parent, which is 51bfd29

 HTH,

 Vincent

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



Re: [git-users] how to change the whole git tree to the patchsets

2012-06-14 Thread lei yang
On Thu, Jun 14, 2012 at 1:52 AM, Konstantin Khomoutov
flatw...@users.sourceforge.net wrote:
 On Thu, 14 Jun 2012 01:03:27 +0800
 lei yang yanglei.f...@gmail.com wrote:

 I want to change my whole tree to the patchset? which cmd can be
 used ?

 git format-patch --root


Thanks
This works well, I know it can extract the file with patchsets with

git format-patch --root xx.c

how could I change the multi-file to pathsets?
eg: xx.c xx.h yy.c

Lei



 Did you RTFM?

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



[git-users] how to get the commit id from one file or multi file

2012-06-14 Thread lei yang
Hi List,

Can we get the commit id list for one file or multifile?

Lei

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



Re: [git-users] how to get the commit id from one file or multi file

2012-06-14 Thread lei yang
On Thu, Jun 14, 2012 at 11:46 PM, Bryce Verdier bryceverd...@gmail.com wrote:
 On 06/14/2012 08:33 AM, lei yang wrote:

 Hi List,

 Can we get the commit id list for one file or multifile?

 Lei

 What do you mean by commit id?


I mean the file in git tree has lots of commit, I want to get the
commit list for this file

Lei



 In trying to save time I'm going to take a guess and then try to answer
 based on that assumption. There is a command called git-blame. You can use
 that to see which person made a change to a particular file.

 Hope that helps.

 Bryce

 --
 You received this message because you are subscribed to the Google Groups
 Git for human beings group.
 To post to this group, send email to git-users@googlegroups.com.
 To unsubscribe from this group, send email to
 git-users+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/git-users?hl=en.


-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



[git-users] how to get the formated patches from the merge id

2012-06-14 Thread lei yang
Hello list:

eg:

commit 0e93b4b304ae052ba1bc73f6d34a68556fe93429
Merge: b724cc1 51bfd29

how can I from 0e93b4b304ae052ba1bc73f6d34a68556fe93429 to get the
formated patch ?
(I know we can do git format-patch b724cc1..51bfd29, but how to from
0e93b4b304ae052ba1bc73f6d34a68556fe93429 to get?)

Lei

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



[git-users] how to diff specifc file for different tags or branch

2012-06-14 Thread lei yang
Hi list
As the title,
if I have two branch A and B, how could I diff the file test.c for A and B

Lei

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



[git-users] about git format-patch help

2012-06-13 Thread lei yang
In my tree from git log I can see the last commit

commit 1c8284ebdbd119314b8f01e442e64cf5fd4b9fe6
Author: Mathieu Desnoyers mathieu.desnoy...@polymtl.ca
Date:   Fri Sep 3 08:08:18 2010 -0400

LTTng modularization, import of lttng 0.226

Will match kernel tree lttng 0.227.

Signed-off-by: Mathieu Desnoyers mathieu.desnoy...@efficios.com

to get the patch I run 

lyang0@lyang0-OptiPlex-755:~/git/lttng-modules$ git format-patch 
1c8284ebdbd119314b8f01e442e64cf5fd4b9fe6^..1c8284ebdbd119314b8f01e442e64cf5fd4b9fe6
fatal: ambiguous argument 
'1c8284ebdbd119314b8f01e442e64cf5fd4b9fe6^..1c8284ebdbd119314b8f01e442e64cf5fd4b9fe6':
 
unknown revision or path not in the working tree.
Use '--' to separate paths from revisions

for other commit it works fine 
lyang0@lyang0-OptiPlex-755:~/git/lttng-modules$ git format-patch 
f277b4c1b33341d2e687a614739778084de370d4^..f277b4c1b33341d2e687a614739778084de370d4
0001-Support-architectures-without-dump-tables.patch


To reproduce it you can run 

git clone git://git.lttng.org/lttng-modules.git
git format-patch 
1c8284ebdbd119314b8f01e442e64cf5fd4b9fe6^..1c8284ebdbd119314b8f01e442e64cf5fd4b9fe6

Thanks 
Lei





-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/git-users/-/k16YWOs_hesJ.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



Re: [git-users] about git format-patch help

2012-06-13 Thread lei yang
On Wed, Jun 13, 2012 at 11:25 PM, Konstantin Khomoutov
flatw...@users.sourceforge.net wrote:
 On Wed, 13 Jun 2012 02:32:25 -0700 (PDT)
 lei yang yanglei.f...@gmail.com wrote:

 In my tree from git log I can see the last commit

 commit 1c8284ebdbd119314b8f01e442e64cf5fd4b9fe6
 Author: Mathieu Desnoyers mathieu.desnoy...@polymtl.ca
 Date:   Fri Sep 3 08:08:18 2010 -0400

     LTTng modularization, import of lttng 0.226

     Will match kernel tree lttng 0.227.

     Signed-off-by: Mathieu Desnoyers mathieu.desnoy...@efficios.com

 to get the patch I run

 lyang0@lyang0-OptiPlex-755:~/git/lttng-modules$ git format-patch
 1c8284ebdbd119314b8f01e442e64cf5fd4b9fe6^..1c8284ebdbd119314b8f01e442e64cf5fd4b9fe6
 fatal: ambiguous argument
 '1c8284ebdbd119314b8f01e442e64cf5fd4b9fe6^..1c8284ebdbd119314b8f01e442e64cf5fd4b9fe6':
 unknown revision or path not in the working tree.
 Use '--' to separate paths from revisions
 [...]

 I think you'd better post this to the main Git list
 (git at vger.kernel.org, you can subscribe to it at [1]) as this might
 indicate a bug.

 To try to solve the problem at hand: does

 git format-patch -1 1c8284ebdbd119314b8f01e442e64cf5fd4b9fe6

 work for you?


it did create a patch, but I dump this patch with nothing, git show
1c8284ebdbd119314b8f01e442e64cf5fd4b9fe6 is not null

Lei


 According to the docs, this has to export the changeset of just the
 single indicated commit.

 1. http://vger.kernel.org/vger-lists.html

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



[git-users] how to change the whole git tree to the patchsets

2012-06-13 Thread lei yang
Hi list

I want to change my whole tree to the patchset? which cmd can be used ?

Lei

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.